Re: Requery DataAdapter
- From: "William \(Bill\) Vaughn" <billva@xxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 11:54:39 -0700
The only way the DataAdapter can "see" database changes is to re-execute the
Fill method which executes the SelectCommand. Since a DataSet is a
"disconnected" in-memory structure, it has no "connection" to the underlying
data. Now if this was a server-side cursor, the situation might be somewhat
different, but you would still have to requery the cursor to get the data...
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"premium001" <premium001@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FAC8DC8D-26C5-49A4-AEBE-CF4D95E776D5@xxxxxxxxxxxxxxxx
>I have .net 2003. I have a form with dataadapter and connection and
>dataset
> objects on it. I display some info in labels on the form from the dataset.
> I
> have a new form come up to make cahnges to the originating database. I
> write
> these changes back to the database using code instead of throught the
> existing objects I mentioned above. After I write the changes back I can
> look
> at the table and the changes are there. I want to have the form update the
> label displays immediately. I can't seem to get the DataAdapter or the
> Dataset to requery or update themselves with the new info for me to
> redisplay
> it in the labels without having to close the app and then restart it. Any
> help would be very much appreciated.
> --
> Thank you for your help...premium001
.
- References:
- Requery DataAdapter
- From: premium001
- Requery DataAdapter
- Prev by Date: Re: Best practices in ADO
- Next by Date: Re: SQL OLEDB Provider problem
- Previous by thread: Requery DataAdapter
- Next by thread: SQL OLEDB Provider problem
- Index(es):
Relevant Pages
|
|