how to delete the selected row in datagridview using ContextMenuStri p.When i right-click and press "delete" the seleted row in the dataGridView has to be deleted and as well in my access table.I am new to C#.net
my coding is this:
Code:
int curRow = 0;
curRow = this.dataGridView1.CurrentRow.Index;
this.dataGridView1.Rows.RemoveAt(curRow);
Leave a comment: