Link to home
Start Free TrialLog in
Avatar of rocky050371
rocky050371

asked on

Using a seperate thread to load a grid

I have a form which loads several hundred records, what I want to do is have a seperate thread which loads the data, so the main form shows then the data comes when it is ready. Rather than wait for the whoe thing. What is the best method of doing thisd, the backgroundworker component or something else?
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Autoeforms
Autoeforms

you can create a thread in code using   System.Threading.Thread and have it fired at start up or on the push of a button.

A great idea to not make the user wait but if if your only talking about a couple hundred records i would be more concerned on what is delaying their load.  A couple of hundred should load in a heart beat.

greg