cannot access a disposed object named datagridtextbox
Posted on 2007-11-16
When I click on the datagrid on my form in the text areas it will navigate but if I click on the grey area next to it I get the message cannot access a disposed object named datagridtextbox. Can someone tell me why it will not navigate when you click on the grey area of the row.
It appears that is pt does not have a value when I click the grey area next to the line.
Dim pt = New Point(e.X, e.Y)
Dim hti As DataGrid.HitTestInfo = DataGrid2.HitTest(pt)
If hti.Type = DataGrid.HitTestType.Cell Then