Insert, Update and Delete Records in a C# DataGridView

added by DotNetKicks
12/30/2016 2:52:57 PM

3 Kicks, 252 Views

In the preceding code, I created a dataGridView1_RowHeaderMouseClick Event for updating and deleting the selected record. When the user clicks on the Row Header of a row then the data present in the cell of the row is stored into the TextBoxes. The DisplayData() method fills in the data in the DataGridView.