GGC selected row changed

Hi,
Which event is fired when the user selects a different row, either by clicking with the mouse or using the arrow keys?
Thanks
Paul


1 Reply

HA haneefm Syncfusion Team January 11, 2008 06:15 PM UTC

Hi,

The GridGroupingControl has two types of selection mode.

Type 1: Record based selection
>>>>>>
This selection support is turned on by setting the grid.TableOptions.AllowSelections to None and setting the grid.TableOptions.ListBoxSelectionMode to something other than None.This selection functionality raises events like the grid.SelectedRecordsChanging/SelectedRecordsChanged event.

[c#] //Add a Selection.
this.gridGroupingControl1.Table.SelectedRecords.Add(record);

//Detect the selection
private void gridGroupingControl1_SelectedRecordsChanging(object sender, SelectedRecordsChangedEventArgs e)
{
if( e.Action == SelectedRecordsChangedType.Added )
e.Cancel = IsRowHeaderCell;
}

Type 2: Row based selection
>>>>>>>
This selection support can be turned on by setting the grid.tableOptions.AllowSelections to something other than None. This selection functionality raises events like the grid.TableModel.SelectionChanging/Changed.

[c#]
this.gridGroupingControl1.TableControl.Selections.Add(GridRangeInfo.Row(3));

Please refer to the following KB article for more details.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=344

Best regards,
Haneef


Loader.
Up arrow icon