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.

Syntax

public void RejectChanges ()

Remarks

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.

Requirements

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