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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph