Question - How can you identify whether any changes are made to the DataSet object since the time it was last loaded?
Answer -
The DataSet object has two methods to track down the changes:
- GetChanges(): It returns the DataSet object that has been changed since it was loaded or since the execution of the AcceptChanges() method.
- HasChanges(): It indicates if any modifications were made since from the time the DataSet object was loaded or after a method call to the AcceptChanges() was made.
Use the RejectChanges() method, if you want to reverse the entire changes since from the time the DataSet object was loaded.