Identification of DataSet object

How to identify that whether any changes are made or not to a DataSet object while it was last loaded?

E

Expert

Verified

To track down the changes DataSet object provides  two methods which are as follows:

i. The HasChanges() method: It indicates if any changes occurred or not since a DataSet object was loaded or after the call to a AcceptChanges() method was made.
ii. The GetChanges() method: It returns the DataSet object, that is changed since it was loaded or since a AcceptChanges() method was executed.

If we desire to revert all changes since a DataSet object was loaded, use RejectChanges() method.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.