AD
Administrator
Syncfusion Team
January 30, 2007 11:47 PM UTC
If you want to select the grid rows holding the group captions, then you cannot use the SelectedRecords collection as the group caption rows are not records.
You can try to use the selection behavior inherited from GridControlBase by the TableModel. To enable this support, you need to set these properties:
gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any;
Then you can handle the selectionsChanging event to only select the group captions. Here is a little sample.
http://www.syncfusion.com/Support/user/uploads/WindowsApplication71_b9887146.zip