how to trigger TableControlCurrentCellActivated() in GGC

Hi,
Is there a setting that allows a GGC to 'see' this event? I have two GGC's, both with the handlers enabled, but only one fires when I click on the row header. They both fire if I click on any cell. Does the row header need to be enabled somehow?

Thanks,
Dimitri

1 Reply

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

Loader.
Up arrow icon