views:

47

answers:

0

From API

In a typical multiple-tier implementation, the steps for creating and refreshing a DataSet, and in turn, updating the original data are to:

Build and fill each DataTable in a DataSet with data from a data source using a DataAdapter.

Change the data in individual DataTable objects by adding, updating, or deleting DataRow objects.

Invoke the GetChanges method to create a second DataSet that features only the changes to the data.

Call the Update method of the DataAdapter, passing the second DataSet as an argument.

Invoke the Merge method to merge the changes from the second DataSet into the first.

Invoke the AcceptChanges on the DataSet. Alternatively, invoke RejectChanges to cancel the changes.