I tried this code to remove the selected row in DataGridView but didn't succeed with can you help please?
Code:
Dim i As Integer = DataGridView3.SelectedRows.Count
Me.DataGridView3.Rows.RemoveAt(i)
Printable View
I tried this code to remove the selected row in DataGridView but didn't succeed with can you help please?
Code:
Dim i As Integer = DataGridView3.SelectedRows.Count
Me.DataGridView3.Rows.RemoveAt(i)
Here is:
Quote:
DataGridView3.Rows.Remove(DataGridView3.CurrentRow)
Yes, your first attempt was tring to remove one past the last row which actually exists, and had nothing to do with selection....