save new record entered from Datagridview into the database
问题 Am using a DataSet and a TableAdapter to populate a Datagridview. The Datagridview allows inserting new records at the bottom. Now when I enter values for the new record in the Datagridview, the record is not automatically saved back to the database. Which event do U need to handle or what code do I need to write to get the new record saved back to the databse. am using C#. 回答1: Are you calling the Update() method on the TableAdapter ? The following code comes from MSDN's discussion on the