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

Expanding Groups

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?
Thanks

1 Reply

MA Madhankumar Syncfusion Team 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,
Madhan

Loader.
Live Chat Icon For mobile
Up arrow icon