ComponentOne DataObjects for .NET
RejectChanges Method (C1DataSet)

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : RejectChanges Method
Rolls back all changes made to the data set since it was filled with data or the last time AcceptChanges or RejectChanges was called.
Syntax
'Declaration
 
Public Sub RejectChanges() 
public void RejectChanges()
Remarks
This method returns all data set rows to their original state.

When the RejectChanges method is called, any rows still in edit mode successfully cancel their edits. New rows are removed. Modified and deleted rows return back to their original state (See DataRowStateEnum).

RejectChanges can also be called for a single simple table.

See Also

Reference

C1DataSet Class
C1DataSet Members
RejectChanges Method