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. Image for the cookie policy date
close icon

Auto Collapse

When I launch grouping grids sometimes some groupings are expanded and sometime all are collapsed. Is there anyway to programmatically collapse all or collapse all then expand one particular grouping.

1 Reply

AD Administrator Syncfusion Team May 28, 2004 10:47 AM UTC

Following code searches for the group that matches the category "Germany" and expands that group. Before the expansion of that one group, all groups are collapsed. Try the code with the "Grid\Samples\Grouping\GroupCustomers" example. this.groupingGrid1.Table.CollapseAllGroups(); GridGroup group = (GridGroup) this.groupingGrid1.Table.TopLevelGroup.Groups["Germany"]; group.IsExpanded = true; Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon