AD
Administrator
Syncfusion Team
March 1, 2007 07:09 PM UTC
Hi Dimitri,
By default, The current cell gets activated after clicking on it ( Because of the default ActivateCurrentCellBehavior property setting of the grid ). If you want to set the currentcell as a clicked cell, you need to use the CurrentCell.MoveTo method in CellClick/CellDoubleClick event. Here is a code snippet.
this.gridGroupingControl1.TableControl.Model.Options.ActivateCurrentCellBehavior = GridCellActivateAction.ClickOnCell;
//Cellclick event
e.TableControl.CurrentCell.MoveTo(e.Inner.RowIndex,e.Inner.ColIndex,GridSetCurrentCellOptions.SetFocus);
Best Regards,
Haneef