System.Data.DataRow.RejectChanges Method

Rejects all changes made to the row since DataRow.AcceptChanges was last called.

Syntax

public void RejectChanges ()

Remarks

When you call the DataRow.RejectChanges method, the DataRow.CancelEdit method is implicitly called to cancel any edits. If DataRow.RowState is deleted or modified, the row reverts to its previous values, and DataRow.RowState becomes unchanged. If the DataRow.RowState is added, the row is removed.

Requirements

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