when and why to use Dataset.accpetchanges()
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
If any row gets changed, deleted, added etc in dataset and we use DataSet.Acceptchanges(), then all the changes committed in dataset. The RowState property of each DataRow also changes; Added and Modified rows become Unchanged, and Deleted rows are removed. After DataSet.Acceptchanges(), no row is in changed position now. Now after this if we want to transfer the changes to live database, it will not happen because dataset is showing that no changes have taken place in it. So make sure that you don’t use DataSet.Acceptchanges() if you want to transfer the changes to live database. So when and why to use Dataset.accpetchanges()