System.Data Namespace DataRow Class
Rejects all changes made to the row since AcceptChanges was last called.
[ VB ]
Public Sub RejectChanges ( )
[ C# ]
void RejectChanges ( );
[ C++ ]
public: void RejectChanges ( );
[ JScript ]
public function RejectChanges ( );
When calling 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.
DataRow Members AcceptChanges IsNull