ComponentOne DataObjects for .NET
AcceptChanges Method (C1DataSet)

C1.Data.2 Assembly > C1.Data Namespace > C1DataSet Class : AcceptChanges Method
Commits 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 AcceptChanges() 
public void AcceptChanges()
Remarks
After this method the current state of all data set rows except deleted rows becomes also their original state.

Any C1DataRow objects still in edit mode successfully end their edits. The RowState property of each C1DataRow changes: Added and Modified rows become Unchanged, and Deleted rows are removed.

AcceptChanges can also be called for a single simple table.

See Also

Reference

C1DataSet Class
C1DataSet Members