DataRow::RejectChanges Method ()
.NET Framework (current version)
Rejects all changes made to the row since AcceptChanges was last called.
Assembly: System.Data (in System.Data.dll)
| Exception | Condition |
|---|---|
| RowNotInTableException | The row does not belong to the table. |
When you call the RejectChanges method, the CancelEdit method is implicitly called to cancel any edits. If RowState is deleted or modified, the row reverts to its previous values, and RowState becomes unchanged. If the RowState is added, the row is removed.
.NET Framework
Available since 1.1
Available since 1.1
Show: