Click here to Skip to main content
16,016,076 members
Home / Discussions / C#
   

C#

 
QuestionGlobal Variables... Pin
JollyMansArt18-Sep-09 7:09
JollyMansArt18-Sep-09 7:09 
AnswerRe: Global Variables... Pin
Vikram A Punathambekar18-Sep-09 7:16
Vikram A Punathambekar18-Sep-09 7:16 
AnswerRe: Global Variables... Pin
PIEBALDconsult18-Sep-09 7:51
mvePIEBALDconsult18-Sep-09 7:51 
AnswerRe: Global Variables... Pin
Ian Shlasko18-Sep-09 8:14
Ian Shlasko18-Sep-09 8:14 
QuestionBackgroundworker Pin
arkiboys18-Sep-09 7:05
arkiboys18-Sep-09 7:05 
AnswerRe: Backgroundworker Pin
Luc Pattyn18-Sep-09 7:11
sitebuilderLuc Pattyn18-Sep-09 7:11 
AnswerRe: Backgroundworker Pin
Luc Pattyn18-Sep-09 7:39
sitebuilderLuc Pattyn18-Sep-09 7:39 
AnswerRe: Backgroundworker Pin
Ian Shlasko18-Sep-09 8:19
Ian Shlasko18-Sep-09 8:19 
RunWorkerCompleted is invoked back to the GUI thread, so any code in there will suspend your UI until it finishes.

Some guesses:
1) If you have a lot of data, the grid may be taking a long time to display it. I haven't worked with the WinForms DataGrid in a long time, but if it has any sort of virtualization, turn that on, so it will only try to display the data that's actually visible, not the part that's scrolled off the screen.

2) If it's not a size issue, there may be a property of the result object that's taking a long time to read. When you set the datasource, the grid will read through the results and try to display it, so it will read all the properties it needs... If some of those are complex, it could take a while. If this is the case, try precalculating and caching those properties during the background thread.

Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

QuestionEnumerate a Listbox Pin
bxlorenz18-Sep-09 7:04
bxlorenz18-Sep-09 7:04 
AnswerRe: Enumerate a Listbox Pin
Luc Pattyn18-Sep-09 7:09
sitebuilderLuc Pattyn18-Sep-09 7:09 
QuestionCopy Files in C# with Duplicate Files (Corrupt ISO) Pin
Xtrodinary18-Sep-09 6:30
Xtrodinary18-Sep-09 6:30 
AnswerRe: Copy Files in C# with Duplicate Files (Corrupt ISO) Pin
jared.hildebrandt21-Oct-09 5:16
jared.hildebrandt21-Oct-09 5:16 
QuestionNo connection could be made because the target machine actively refused it Pin
Amritarth18-Sep-09 6:06
Amritarth18-Sep-09 6:06 
AnswerRe: No connection could be made because the target machine actively refused it Pin
EliottA18-Sep-09 6:31
EliottA18-Sep-09 6:31 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Luc Pattyn18-Sep-09 6:31
sitebuilderLuc Pattyn18-Sep-09 6:31 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Dave Kreskowiak18-Sep-09 7:27
mveDave Kreskowiak18-Sep-09 7:27 
AnswerRe: No connection could be made because the target machine actively refused it Pin
0x3c018-Sep-09 7:40
0x3c018-Sep-09 7:40 
AnswerRe: No connection could be made because the target machine actively refused it Pin
Arun Jacob18-Sep-09 19:00
Arun Jacob18-Sep-09 19:00 
QuestionHow to find total data downloaded and uploaded by user (using c# code) Pin
Ajay Kewale18-Sep-09 5:27
Ajay Kewale18-Sep-09 5:27 
AnswerRe: How to find total data downloaded and uploaded by user (using c# code) Pin
Eddy Vluggen18-Sep-09 9:53
professionalEddy Vluggen18-Sep-09 9:53 
QuestionHow to get upload status in steps Pin
vsaratkar18-Sep-09 5:12
vsaratkar18-Sep-09 5:12 
AnswerRe: How to get upload status in steps Pin
Not Active18-Sep-09 5:22
mentorNot Active18-Sep-09 5:22 
AnswerRe: How to get upload status in steps Pin
Dave Kreskowiak18-Sep-09 5:24
mveDave Kreskowiak18-Sep-09 5:24 
AnswerRe: How to get upload status in steps Pin
vsaratkar18-Sep-09 7:19
vsaratkar18-Sep-09 7:19 
QuestionAccessing to an Object in Section4 of a Crystal Report with C# ? Pin
Mohammad Dayyan18-Sep-09 5:07
Mohammad Dayyan18-Sep-09 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.