[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

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?
0
rocky050371
Asked:
rocky050371
1 Solution
 
jpaulinoCommented:
I think backgroundworker is the best practice, but you can also add a delay (using a time) to load all the information after the form opens.
0
 
AutoeformsCommented:
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
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now