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.

Group content selection

Thread ID:





123671 Apr 8,2016 11:56 AM Apr 12,2016 09:59 AM WPF 3
Tags: SfDataGrid
Pierre Marzorati
Asked On April 8, 2016 11:56 AM

We are trying to achieve the following functionality with the sfDataGrid and it is proving quite difficult:
  • when the grid has groups, we want to be able to let the user select multiple groups (selecting a group should place all of its inner records within the SelectedItems)
  • opening or collapsing a group should not deselect any of its inner records
This piece of functionality can be achieved manually by opening the groups one by one and selecting all of their inner records, but this is very cumbersome and unpractical for the users which is why we would like an easy way for a user to quickly select the content of several groups.

I hope someone has already implemented such fonctionality.
Many Thanks

Jai Ganesh S [Syncfusion]
Replied On April 11, 2016 03:03 AM

Hi Pierre,

You can achieve your requirement for selecting the groups with records by customizing the GridSelectionController. We already have a kb regarding this and please find the kb form the following location,

Kb Link:

Jai Ganesh S

Pierre Marzorati
Replied On April 11, 2016 10:42 AM

Hi Jai,
Thank you for your reply. This sample works actually by reselecting all the elements within a group when the group is expanding, but what I need instead is for a group not to lose any selection when the group is collapsed and re-opened.
So imagine I have group A with 3 records inside it: if I select record 1 and 3, when I collapse and re-open that group, I want record 1-3 to be still selected (and the SelectedItems collection should not change when group A collapses). In other words, collapsing a group should not modify current record selection.
I hope this is clear.
Many thanks

Jai Ganesh S [Syncfusion]
Replied On April 12, 2016 09:59 AM

Hi Pierre,

A support incident to track the status of this query has been created under your account. Please log on to our support website to check for further updates


Jai Ganesh S


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.