Track the progress of a DataSet Fill?

  • Thread starter Thread starter Jared Miniman [MVP]
  • Start date 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
 
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.
 
Back
Top