APaule
Well-known member
- Joined
- Mar 26, 2003
- Messages
- 105
Sorry hog, but it is really hard to believe, that your code works in any form.
First of all, if you run a Clear against a dataset, you remove the tables contents of the dataset!
Then, if you perform an Update, what do you expect to happen? There are no more records to handle.
So, what you have to do, is to clear the contents of the DataAdapter, then refill it (with Fill!!!). All bound controls should immediately show the new contents.
First of all, if you run a Clear against a dataset, you remove the tables contents of the dataset!
Then, if you perform an Update, what do you expect to happen? There are no more records to handle.
Who told you that an update will reread the data? The Update method does definitely NOT refill the dataset (this is managed by the Fill-method). It will just perform the INSERT-, UPDATE- and DELETE-commands of the DataAdapter.originally posted by hog
Therefore....the update method reads the database again to ensure it has an up to date listing of items in the database.
So, what you have to do, is to clear the contents of the DataAdapter, then refill it (with Fill!!!). All bound controls should immediately show the new contents.