I am using a TableAdapter to connect to my database table.
When I perform an Update and someone else has updated the same row I get a concurrency violation error. As expected.
So at this point I give the user the option to Save regardless or Cancel changes
If they cancel I can just performs a Fill to get an updated copy of the data but what if they want to overwrite? How do I actually force a save of the data overwriting the data held in the database?
If you are using a SQLCommandBuilder to generate your update statements then set
CommandBuilder.ConflictOption=ConflictOption.OverwriteChanges;
and then do the Update() again.