AD
Administrator
Syncfusion Team
March 19, 2007 03:53 PM UTC
Hi NIBBLER,
You can handle the TableControlMouseDown event of the grid and move the current cell to required position in a grid. Here is a code snippet
private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
{
int row,col;
e.TableControl.PointToRowCol(new Point(e.Inner.X,e.Inner.Y),out row,out col);
if( row != -1 || col != -1)
e.TableControl.CurrentCell.MoveTo(row,col,GridSetCurrentCellOptions.SetFocus);
}
Best regards,
Haneef