We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Selected grouping Rows in GGC

I have a GGC like this :
+ B1
row1
row2
+ B2
row1
row2
row3
...
+ B3
...

I want to select only B1 or/and B2, B3. (groups not rows)

I activate the multiselection and added a popup menu item. when I click on it, I want to know the selected Groups (B1,B2...)

How can I do that ?






1 Reply

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

Loader.
Live Chat Icon For mobile
Up arrow icon