Which method is used to commit all changes in the DataSet or DataTable?
-
AcceptChanges
-
Update
-
GetChanges
-
Accept
A
Correct answer
Explanation
AcceptChanges is the specific method in DataSet/DataTable that commits all pending changes since the last AcceptChanges call. It updates the RowState of all rows to Unchanged. Update is a DataAdapter method for database synchronization, GetChanges returns pending changes, and Accept is not a valid method.