Rolls back all changes that have been made to the table since it was loaded, or the last time AcceptChanges was called.
[Visual Basic] Public Sub RejectChanges() [C#] public void RejectChanges(); [C++] public: void RejectChanges(); [JScript] public function RejectChanges();
When RejectChanges is called, any DataRow objects that are still in edit-mode cancel their edits. New rows are removed. Rows with the DataRowState set to Modified or Deleted return back to their original state.
DataTable Class | DataTable Members | System.Data Namespace | AcceptChanges | BeginEdit | DataRow | DataRowState | DataRowVersion | EndEdit