mickn66
Well-known member
- Joined
- Nov 2, 2002
- Messages
- 53
I have a datagrid bound to a dataset. The user of my application can make the usual changes to it. I have a "save" button to save the changes or additions to the underlying database. My "save changes" routine uses the GetChanges method to determine which records have been changed, and then it uses OleDbDataAdapter InsertCommands or UpdateCommands as appropriate.
At the end, I call the AcceptChanges method of the dataset. It seems to be working fine. I see that sometimes (maybe always?) people preceed the AcceptChanges command with a Merge command, merging the original dataset with the one created by the GetChanges command. My question is, is this necessary? Why? Thanks
At the end, I call the AcceptChanges method of the dataset. It seems to be working fine. I see that sometimes (maybe always?) people preceed the AcceptChanges command with a Merge command, merging the original dataset with the one created by the GetChanges command. My question is, is this necessary? Why? Thanks