Undoes the changes made to the DataSet since it was created or since the last time DataSet.AcceptChanges was called.
Invoking this method causes the DataSet object to call the DataTable.RejectChanges in order to invalidate the changes made to the table stored in the DataSet.Tables collection.
System.Data.DataRow objects contained in the tables stored in the DataSet can be set into edit mode by calling the DataRow.BeginEdit method and out of the edit mode by calling the DataRow.EndEdit method. After the latter method is invoked, it is possible to either reject the changes by calling RejectChanges on the table or DataSet, or accept them by calling the DataSet.AcceptChanges (or DataTable.AcceptChanges of the table the rows belong to) method.
Calling the RejectChanges method causes all the rows in the edit mode to cancel the mode, the new rows to be deleted from the table and modified and deleted rows to return back to their DataRowState.Unchanged state.
Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0