System.Data.DataTable.RejectChanges Method

Rolls back all changes that have been made to the table since it was loaded, or the last time DataTable.AcceptChanges was called.


public void RejectChanges ()


When DataTable.RejectChanges is called, any System.Data.DataRow objects that are still in edit-mode cancel their edits. New rows are removed. Rows with the System.Data.DataRowState set to Modified or Deleted return back to their original state.


Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0,