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.

Collapsing all records from the data grid

Thread ID:

Created:

Updated:

Platform:

Replies:

48932 Sep 6,2006 12:22 PM Sep 7,2006 03:35 AM Windows Forms 1
loading
Tags: GridControl
Konstantin Babiy
Asked On September 6, 2006 12:22 PM

I am using a GridGroupingControl and a dataset datasource with multiple data tables in it. How could I cololapse all tables when my form starts?

I tried something like this:
_gridGrouping.Table.CollapseAllRecords();

but had no desired effect.

Thanks for your help.

Administrator [Syncfusion]
Replied On September 7, 2006 03:35 AM

Hi Konstantin,

Try this code snippet to collapse the all the table in a grid.

//Form load event.
foreach(Element el in this.grid.Table.NestedDisplayElements )
{
el.ParentChildTable.IsExpanded = false;
}

Thanks,
Haneef

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.

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.

;