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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selected grouping Rows in GGC

Thread ID:





55424 Jan 30,2007 10:04 AM UTC Jan 30,2007 11:47 PM UTC WinForms 1
Tags: GridControl
Asked On January 30, 2007 10:04 AM UTC

I have a GGC like this :
+ B1
+ B2
+ 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 ?

Administrator [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon