Insert, Update and Delete Data using DataGridView and save changes to database:
GridView is a control that provides you a very easy way to insert update and delete data and save modifications to database. You only have to make changes in GridView and click the button changes will be saved to database. Here is an example which shows how to save changes to database. · Start a new WindowsFormApplication. · Make a connection with database. · Add a button on the form for inserting and updating data. · Add another button on the form which will delete record. · Add a DataGridView on the form located in Data section of toolbox. · Select the DataGridView and go to properties. · Change the name property of DataGridView to MyDataGridView. ...