The text of this article is not in this database — only its details are. Read it on the old site: Database Table Update in a DataGridView without Writing Code
9 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Gordon FreemanPosted May 28, 2017, 3:43 AM
Please, show us the content of the DoSave() method
Hashim ShafiqPosted Aug 21, 2015, 10:17 PM
Nice
edelawit mekonenPosted Feb 18, 2011, 2:45 AM
i tried to delete a row and then save the change to the database after following your steps and creating all the things but i keep on getting this error .... "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows." Is there anything i've missed? cuz i've tried it in a different way but the delete function doesn't work either way... please help
Becky FinleyeditedPosted May 18, 2010, 5:39 PMEdited May 18, 2010, 5:40 PM
Hello! I've read your very helpful article and followed it step by step just as I've been doing for days now, but still my datagrid will not allow editing when it is deployed on my device. I'm using Merge Replication from the SQL Server 2008 to SQL CE 3.5 SP1 running on my Visual Studio C# coded app on the Emulator. I get the Server data displayed in the datagrid on the Device successfully, that is not a problem. But there is no way to edit it, and no empty row to add new data. Oddly enough, I'm missing the BindingNavigator and TableManager, however I do get the Datagrid on the form and underneath it there is "mainMenu", "sQL_CE_DATABASEDataSet", BindingSource, TableAdapter, and sQLCEDATABASEDataSetBindingSource. Why do you think I'm missing the BindingNavigator, and what could I be doing incorrectly? Thanks!
ahmed aliPosted Apr 1, 2010, 11:41 AM
Oh ! dear, thank you very much.