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

Expanding Groups

Thread ID:





60589 May 8,2007 05:40 PM UTC May 8,2007 06:34 PM UTC WinForms 1
Tags: GridControl
Asked On May 8, 2007 05:40 PM UTC

Syncfusion 4.4
VS 2005

With the GGC, I have 4 levels of grouping. On application start up, I want only the first 2 levels to be expanded(not all the levels).
Can you please provde me with a sample?

Madhankumar [Syncfusion]
Replied On May 8, 2007 06:34 PM UTC

Hi Shek,

This can be achieved by different ways. One technique is to iterate through the groups and set the IsExpanded property to required groups. The following is the code snippet.

++++++++ Code Snippet ++++++++++
foreach (Group coll in this.gridGroupingControl1.Table.TopLevelGroup.Groups)
coll.IsExpanded = true;
coll.Groups[0].IsExpanded = true;
++++++++ Code Snippet ++++++++++

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,


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

or the page will be automatically redirected to 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