Hi,
In the MouseDown event, I save the mouse X/Y coordinates to reuse them later in the Click event to get the row/cell. My issue is when the user clicks on a row that is partially hidden, it first moves it up a little causing the coordinates to no longer be accurate.
How can I adjust the coordinates if the row is scroll into view?
Thanks.Annie
P.S. I am using version 9.2.20091.2085
What about using the MouseUp event? You can also get the mouse position in the Click event by using Cursor.Position or Control.MousePosition. Howevenr, this is in screen coordinates and you need to use grid.PointToClient method to convert it.
The code I have must be within the Click event. I tried using the Control.MousePosition method and it gives me back the same coordinates as the one I saved within the MouseDown event which is not good because the row at this point already moved to be all visible.
Annie