As per me
Place your Code what you have Written to load/Fetch the Data in DataGridView
inside a Function May you name it
I Did like this
Declared a Function
Public Sub RecordDelete()
Dim id As Integer = DataGridView1.SelectedCells.Item(0).Value()
Dim cmd As New SqlCommand("Delete From Tst_Bank where ID='" & id & "'", myCon.con())
cmd.ExecuteNonQuery()
loadData()
End Sub
And on Delete Button Click
RecordDelete()
Under loadData() Function I am Getting the Data inside the DataGridView.
No need to Use
DataGridView2.Rows.Remove(rows)
Implement this as per your Requirement