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

collapse nested child tables in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

38479 Dec 13,2005 11:11 PM UTC Dec 13,2005 11:40 PM UTC Windows Forms 1
loading
Tags: GridControl
Nancy Jan
Asked On December 13, 2005 11:11 PM UTC

Hi, In a GGC, I defined two tables nested below the top level. When user clicks the + sign to view details from top level record, I want the nested records to default to collapsed. How do I do this? Thanks, NJ

Administrator [Syncfusion]
Replied On December 13, 2005 11:40 PM UTC

Try handling the RecordExpanded event and closing the tables at that point.
private void gridGroupingControl1_RecordExpanded(object sender, RecordEventArgs e)
{
	Record r = e.Record;
	if (r != null && r.NestedTables.Count > 1 )
	{
		r.NestedTables[0].IsExpanded = false;
		r.NestedTables[1].IsExpanded = false;
	}
}

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

;