Fill DataTable Progress
- From: "processoriented" <processoriented@xxxxxxxxx>
- Date: 12 Oct 2006 16:21:52 -0700
Hi, I'm something of a noob at this, but here it is... I have an app
that fills a dataset from a SQL database, and then writes the dataset
to an xml file. Everything is a SELECT query... I am basically just
replicating data to the local user's machine, and several of the
queries take a long time to run over VPN connection to the database
(the way most of my users will use it), so I sank the whole operation
into a BackgroundWorker so that the user's app wont freeze up while it
is running.
I would love to use the backgroundworker progresschanged event to
control a progress bar and show the user how much longer the background
operation is going to take, but I can't seem to figure out how to make
that happen... I have experimented with the dataadapter rowupdating
event, but even if I can get that working (and so far I can't) it will
only tell me how many rows it's already done, not how many it has to
go... I thought about running two queries on the database (one to
count the number of records I should expect and one to return the
records) but, really, there's got to be a better way. Has anyone out
here had any success in developing a solution that returns progress
indication on filling a dataset from a SELECT query that they can post?
I am basically looking for an example here so that I can figure out
how to apply it to my own circumstance.
Thanks!
V
.
- Follow-Ups:
- Re: Fill DataTable Progress
- From: Jay B. Harlow
- Re: Fill DataTable Progress
- From: Stephany Young
- Re: Fill DataTable Progress
- Prev by Date: Iterating through a ListBox in VB.NET VS 2005
- Next by Date: Re: How to open a .CSV file ?
- Previous by thread: Iterating through a ListBox in VB.NET VS 2005
- Next by thread: Re: Fill DataTable Progress
- Index(es):
Relevant Pages
|