Frequently Asked Interview Questions

What happens when you invoke Dataset’s AcceptChanges() method?

By invoking AcceptChanges on the DataSet causes AcceptChanges to be called on each table with in DataSet.

Calling AcceptChanges at the DataTable level causes the AcceptChanges method for each DataRow to be called.

When you call AcceptChanges on the DataSet, any DataRow objects still in edit-mode successfully end their edits. The RowState property of each DataRow also changes; Added and Modified rows become Unchanged, and Deleted rows are removed.

Most Visited Pages

Home | Site Index | Contact Us