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

"The groups are not collapsed while modifying the records" How can I change this behavior?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: May 13, 2015 |
Last Revised Date: May 13, 2015
Tags: grouping

Problem

While modifying the content of the grouped records, the groups are not getting collapsed in the version 13.1.0.X (2015 Volume 1) of the Essential studio.

Solution

From the 13.1.0.X version of Essential Studio, the default behavior is, when a group is added or modified it does not collapse all the other groups.

To collapse the entire group, except the distinct group created by adding or modifying the record, set the TableDirty property value as “true” in SourceListListChanged event. When a table is marked dirty, any subsequent access to child elements and a resulting Syncfusion.Grouping.Element.EnsureInitialized(System.Object) call triggers re-categorization of all records in the table.

C#

VB

The following screenshot illustrates only the new group in the table.

Figure 1: New group in table

Sample Location

C#: Grouping               

VB: Grouping

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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