Hi, I was trying to do a code that would erase my DataGridView rows, but I can't seem to be able to do it. If anybody could help it would be very cool.
Thanks
Code:
I get the following exception:
Impossible de supprimer la nouvelle linge non validée
which in English is something like:
Unable to delete the new unvalide line
Thanks
Code:
VB.NET:
Private Sub searchClear_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles searchClear.Click
Dim i As Integer
For i = 0 To DataGridView1.RowCount - 2
DataGridView1.Rows.RemoveAt(i)
Next
End Sub
I get the following exception:
VB.NET:
InvalidOperationException
which in English is something like:
Unable to delete the new unvalide line