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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Expand by one level

Thread ID:

Created:

Updated:

Platform:

Replies:

31590 Jul 11,2005 12:20 PM UTC Jul 11,2005 01:11 PM UTC WinForms 1
loading
Tags: GridControl
Catinat Velmourougan
Asked On July 11, 2005 12:20 PM UTC

hi The expandall function expands untill the records are seen.I want to expand by only one level , for ex, expand all: grp1 grp2 rec expand to one level: grp1 grp2 How to do it?

Administrator [Syncfusion]
Replied On July 11, 2005 01:11 PM UTC

Try setting the Group.IsExpanded property. Here is code that expands one level of groups from a button handler.
private void button1_Click(object sender, System.EventArgs e)
{
	ExpandOneLevelGroups(this.gridGroupingControl1.Table.TopLevelGroup);
}

private void ExpandOneLevelGroups(ChildTable parent)
{
	foreach(Group g in parent.Groups)
	{
		g.IsExpanded = true;
	}
}
 

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

;