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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Grouping Control

Thread ID:





23545 Jan 13,2005 10:13 PM UTC Jan 14,2005 06:01 AM UTC WinForms 1
Tags: GridControl
Asked On January 13, 2005 10:13 PM UTC

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

Administrator [Syncfusion]
Replied On 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(); } }


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

Live Chat Icon For mobile
Live Chat Icon