AD
Administrator
Syncfusion Team
October 15, 2003 02:31 PM UTC
You use the grid.PointToRowCol method. The point you pass in must be in the grid coordinates.
Point pt = grid.PointToClient(Control.MousePosition);
int rowIndex, colIndex;
grid.PointToRowCol(pt, out rowIndex, out colIndex);
If you are in one of the grid's mouse events, the e.X and e.Y are in the grid's coordiante system, so you can just use
Point pt = new Point(e.X, e.Y);
to get the point and not have to call PointToClient.