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.
Unfortunately, activation email could not send to your email. Please try again.

Selected grouping Rows in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

55424 Jan 30,2007 05:04 AM Jan 30,2007 06:47 PM Windows Forms 1
loading
Tags: GridControl
Beny78
Asked On January 30, 2007 05:04 AM

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 ?






Administrator [Syncfusion]
Replied On January 30, 2007 06:47 PM

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

CONFIRMATION

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.

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.

;