|
Subject:
|
Getting changes in a dataset
|
|
Posted By:
|
sailu
|
Post Date:
|
12/27/2006 11:54:50 PM
|
Hi, In my application i retrieve some details in a dataset and i put it in the view state and i bind it to the grid view. Now using Edit/Delete/Add commands i need to make changes to the dataset. Finally i need to have a dataset which contains all the modified rows, deleted rows and added rows. If i put the dataset in view state and on clik of delete i delete the record from the dataset and put it back in viewstate, Will i be able to get the changes using dataset.Getchanges() method....Or i there any other way of doing it. The logic here is to hit the database at the end..Once for Update,once for delete and once for adding.
Please help me in this regard....thanks in advance
Sailesh
|
|
Reply By:
|
rumbafum
|
Reply Date:
|
1/10/2007 3:41:28 PM
|
use GetChanges() method from the DataSet
|
|