How can we check that some changes have been made to dataset since it was loaded?

How can we check that some changes have been made to dataset since it was loaded?

- The changes made to the dataset can be tracked using the GetChanges and HasChanges methods.

- The GetChanges returns dataset which are changed since it was loaded or since Acceptchanges was executed.

- The HasChanges property indicates if any changes were made to the dataset since it was loaded or if acceptchanges method was executed.

- The RejectChanges can be used to revert thee changes made to the dataset since it was loaded.

How can we check that some changes have been made to dataset since it was loaded?

1. GetChanges: gives the dataset that has changed since newly loaded or since Accept changes has been executed.
2. HasChanges: this returns a status that tells if any changes have been made to the dataset since accept changes was executed.
How can we add/remove row’s in “DataTable” object of “DataSet”?
How can we add/remove row’s in “DataTable” object of “DataSet”? - NewRow method is provided by the Datatable to add new row to it.DataTable has DataRowCollection object which has all rows in a DataTable object....
How do we use stored procedure in ADO.NET?
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?
Basic use of “DataView” and explain its methods.
A DataView is a representation of a full table or a small section of rows, it is used to sort and find data within Datatable...
Post your comment