In order to initialize my VouchersDGV Data Grid View I\'m Using the following
DGV.AllowUserToDeleteRows = True
For i = 1 To DGV.RowCount - 1
DGV.Rows.Remo
If Not DGV.Rows(i).IsNewRow Then
DGV.Rows.RemoveAt(i)
End If
Add this condition to your loop. Alternatively, you could also use DGV.RejectChanges() which will reset all the row status to original.
If your goal is to empty the row collection, you can just use the Clear method of the Rows collection:
DGV.Rows.Clear()
Hope this helps.