What happens when you apply AcceptChanges() method on a DataSet?

 Posted by Tripati_tutu on 11/22/2010 | Category: ADO.NET Interview questions | Views: 4629 | Points: 40

When you will apply AcceptChanges() method to a DataSet, then it will call AcceptChanges() method on each table within the DataSet. This method will also have in both the DataRow and DataTable classes.

When AcceptChanges() calls at the DataTable level, it causes the AcceptChanges method for each DataRow.

When AcceptChanges() call on the DataSet, then the edit mode of DataRow objects will end successfully with editing. The RowState property of each DataRow also changes. The added and modified rows become as it is, and deleted rows are removed.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response