I'm using HitTest to get a value from the cells into a textbox. I have put
the HitTest code into the MouseDown-event, and everything is working except
one thing. When I start the program the value in the first column/row is
highlighted and the HitTest doesn't retrieve a value if I click on that
cell. Is there a way to get a datagrid to not highlight a cell - or are
there any other ways to solve this?
HitTest-code (simplified)
Dim xInfo As DataGrid.HitTestInfo
xInfo = Me.dgNames.HitTest(e.X, e.Y)
MessageBox.Show(dgNames.Item(xInfo.Row, xInfo.Column))
Thanks!
Maria