Track the progress of a DataSet Fill?

  • Thread starter Jared Miniman [MVP]
  • Start date
J

Jared Miniman [MVP]

I have a rather large DataSet that I'm dealing with, and also have a nice
progress bar control. I call DataSet.Fill() and it takes about 10 seconds
to return. Is there anyway I can track the progress of this fill by binding
an event handler of some sort?

--
_________________________________
Jared Miniman, MS-MVP Mobile Devices
Mobile Computer Consultant

ActiveSync problems?
http://www.microsoft.com/mobile/pocketpc/support/help/activesync.asp
Connection Mngr Q's?
http://www.microsoft.com/mobile/pocketpc/tutorials/connectionmanager
 
A

Alex Feinman [MVP]

Two approaches come to mind:
1) Fill the dataset in a separate thread and meanwhile in the interface
thread run a loop that would check the target table row count and update the
progress bar correspondingly
2) Fill dataset in segments using the most extended overload of
DataAdapter.Fill. Update progress bar between segments. THis would be slower
but probably cleaner.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top