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

Grid Grouping Control

Is there a way to have the GridGrouping control +/- boxes have a default to expanded rather than collapsed when grouping by a specific column?

1 Reply

AD Administrator Syncfusion Team January 14, 2005 06:01 AM UTC

You can handle the TableDescriptor.GroupedColumns.Changed event. this.gridGroupingControl1.TableDescriptor.GroupedColumns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changed); private void GroupedColumns_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e) { if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Add || e.Action == Syncfusion.Collections.ListPropertyChangedType.Insert && e.Item != null) { SortColumnDescriptor scd = e.Item as SortColumnDescriptor; if(scd != null && scd.Name == "Col1") this.gridGroupingControl1.Table.ExpandAllGroups(); } }

Live Chat Icon For mobile
Up arrow icon