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

Expanding Groups

Thread ID:





60589 May 8,2007 01:40 PM May 8,2007 02:34 PM Windows Forms 1
Tags: GridControl
Asked On May 8, 2007 01:40 PM

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 02:34 PM

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.

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.