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.
Syncfusion Feedback

Expanding Groups

Thread ID:

Created:

Updated:

Platform:

Replies:

60589 May 8,2007 05:40 PM UTC May 8,2007 06:34 PM UTC Windows Forms 1
loading
Tags: GridControl
Andy
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?
Thanks

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,
Madhan

CONFIRMATION

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.

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

;