S
schapopa
Hi,
I have a contextmenu when user right click on the datagrid first column
- delete row from datagrid.
My code for that looks like this:
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem1.Click
ds.Tables(0).Rows.RemoveAt(myHitTest.Row)
End Sub
where my hittest comes from mouse_down event.
Everything works fine untill I insert value in the datagrid and then try
to delete it. Then I get an error that there is no row at the position.
Does anyone has any suggestions?
Thank you
Schapopa
I have a contextmenu when user right click on the datagrid first column
- delete row from datagrid.
My code for that looks like this:
Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem1.Click
ds.Tables(0).Rows.RemoveAt(myHitTest.Row)
End Sub
where my hittest comes from mouse_down event.
Everything works fine untill I insert value in the datagrid and then try
to delete it. Then I get an error that there is no row at the position.
Does anyone has any suggestions?
Thank you
Schapopa