asp.net.ph

DataRow.RejectChanges Method

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 ( );

Exceptions


Exception Type Condition
RowNotInTableException Occurs when the row does not belong to the table.

Remarks

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.

See Also

DataRow Members   AcceptChanges   IsNull Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note