I have an app that allows the user to build a query and then click on a
button to execute the query and the results are then used to fill a grid.
Can I have the retrieval run in a backgroundworker and have a button that
would allow the user to cancel the query if it is running for too long of a
period? Is the BackgroundWorker able to populate a grid which is running in
the primary thread?

Bill

Re: BackgroundWorkers and ADO.Net by Eric

Eric
Thu Jul 19 05:10:22 CDT 2007

See
http://www.emoreau.com/Entries/Articles/2006/11/MARS-and-Asynchronous-ADONet.aspx

--


ALP

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc. (http://www.emoreau.com)

"Bill Gower" <billgower@charter.net> wrote in message
news:%2350ex3cyHHA.1164@TK2MSFTNGP02.phx.gbl...
>I have an app that allows the user to build a query and then click on a
>button to execute the query and the results are then used to fill a grid.
>Can I have the retrieval run in a backgroundworker and have a button that
>would allow the user to cancel the query if it is running for too long of a
>period? Is the BackgroundWorker able to populate a grid which is running
>in the primary thread?
>
> Bill
>
>