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

Preventing the group from being collapsed.

Thread ID:





123236 Feb 28,2016 10:02 AM UTC Feb 29,2016 12:46 PM UTC WPF 2
Tags: SfDataGrid
Asked On February 28, 2016 10:02 AM UTC


I have a requirement where some of the group should not be collapsible, so I have added the below code on OnGroupCollapsed method where I am checking if the group is "Component #1" then we are setting the group.IsExpand=True.

private void SfDataGrid_OnGroupCollapsed(object sender, GroupChangedEventArgs e)


if (e.Group.Key.Equals("Component #1"))


e.Group.IsExpanded = true;



With this above code what we are noticing is that for the group "Component #1" when user clicks on collapse the group does not collapse [As needed] but what i also notice is that some of the rows down below are getting removed and we are getting an ArgumentOutofRangeException.

Can you please let me know why we are getting this exception when we are not deleting any row here. Attached is the sample application.


Attachment: SampleGrid_a50d28fd.7z

Replied On February 28, 2016 10:05 AM UTC

Submitting the question in WPF platform.

Sowndaiyan Paulpandi [Syncfusion]
Replied On February 29, 2016 12:46 PM UTC

Hi Pruthvi

Thanks for contacting Syncfusion Support.

In SfDataGrid, you can achieve your requirement by using SfDataGrid.ExpandGroup method and we have modified the sample as per your requirement and you can download the sample from the below location,

Sample : http://www.syncfusion.com/downloads/support/forum/123236/ze/NewRecipeGrid-331706138




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