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

GridGroupingControl saving Collapsed or expanded position of rows

Thread ID:





82658 Jun 18,2009 10:43 AM UTC Sep 7,2009 12:35 PM UTC WinForms 3
Tags: Grouping
Vihang Mankad
Asked On June 18, 2009 10:43 AM UTC

I have rows and subrows displayed in a grid, using GridGroupingControl.
I want to collapse some of the expanded rows. So presently i have some expanded and some collapsed rows. Now after closing this application, if i am running this application once again, is this possible to open grid in the same state, i closed my application previously i.e. some rows expanded and some rows collapsed

Please reply me soon

Rajadurai C [Syncfusion]
Replied On June 20, 2009 09:12 AM UTC

Hi Vihang,

Thanks for your interest in Syncfusion Products.

There is no direct support for saving the expand/collapse information of the grid. This has to be done manually. You can iterate through all the DisplayElements collection and save necessary details of the record which has been expanded or the group which has been expanded and save the information in a text file or xml file. Then this information can be used to re-implement the grid with the settings.

In the sample provided, a string "f" is used to store the expanded state and retrieved it even when the records are collapsed. You can use same type of method to store Groups being expanded and replay it. To observe the behavior in sample, expand some records and click "Save" button. Then collapse the records back to normal and click the "Expand" button.


Vihang Mankad
Replied On June 23, 2009 06:29 AM UTC

Thanks for your reply,
My application is very big, and this is one of the small module. Number of users uses this application. For each user using the application, it is not possible to save collapsed and expanded state by storing their values in xml file.
Is there any other solution possible.
Thanks in advance.

Rajadurai C [Syncfusion]
Replied On September 7, 2009 12:35 PM UTC

Hi Vihang,

I apologize for the long delay in getting back to you.

To save/restore expanded/collapsed state in grid, using xml serialization/deserialization technique is the best and only way to achieve.

Please let me know if you have any further concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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