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

Collapsing all records from the data grid

Thread ID:

Created:

Updated:

Platform:

Replies:

48932 Sep 6,2006 04:22 PM UTC Sep 7,2006 07:35 AM UTC WinForms 1
loading
Tags: GridControl
Konstantin Babiy
Asked On September 6, 2006 04:22 PM UTC

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 07:35 AM UTC

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.

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

;