Hi,
The two methods of selections in ggc are selection based on behavior inherited from GridControlBase and based on selection architecture of ggc itself.
>>>>>>>>>>>>>>>>
What events is being fired when using the two methods?
Events that will be fired in first method are:
GridGroupingControl.TableControl.Model.SelectionChanging
GridGroupingControl.TableControl.Model.SelectionChanged
Events that will be fired in second method are:
GridGroupingControl.SelectedRecordsChanging
GridGroupingControl.SelectedRecordsChanged
>>>>>>>>>>>>>>>>
How can i get information about the selected row?
In method1:
this.gridGroupingControl1.TableControl.Model.Selections.Ranges[0].Top;
In method2:
this.gridGroupingControl1.Table.SelectedRecords[0].Record.GetSourceIndex();
>>>>>>>>>>>>>>>>
What code do i have to write to switch between the methods?
To activate the second method, set the TableOptions.AllowSelection property to GridSelectionFlags.None and to activate the first method set the
TableOptions.AllowSelection property to other than none.
>>>>>>>>>>>>>>>>
Above stated solutions are implemented in the following sample.
SelectionInGGC.zipRegards,
Saravanan