HOW CAN YOU IDENTIFY WHETHER OR NOT ANY CHANGES ARE MADE TO THE DATASET OBJECT SINCE IT WAS LAST LOADED?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
 1684  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

    The DataSet object provides the following two methods to track down the changes:

    The GetChanges() method - Returns the DataSet object, which is changed since it was loaded or since the AcceptChanges() method was executed.

    The HasChanges() method - Indicates if any changes occurred since the DataSet object was loaded or after a call to the AcceptChanges() method was made.

    If you want to revert all changes since the DataSet object was loaded, use the RejectChanges() method.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!