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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Persisting Expanded Groups after a refresh

Thread ID:





16085 Jul 6,2004 08:36 AM UTC Jul 6,2004 03:46 PM UTC WinForms 1
Tags: Grouping
Administrator [Syncfusion]
Asked On July 6, 2004 08:36 AM UTC

Hi, I have a grouping grid with a number of levels of grouping. I''d like a way to remember which group items were orignally expanded prior to refreshing the grid completely and then searching for each of those expanded groups and auto expanding them for the user. I add each grouping column to syncGrid.TableDescriptor.GroupedColumns but can''t find a way to enumerate through the gird in order to check group.IsExpanded - should I be looking at syncGrid.Table.TopLevelGroup.Groups? Thanks Jason

Administrator [Syncfusion]
Replied On July 6, 2004 03:46 PM UTC

Jason, you can loop through the groups by iterating through groupingGrid.Table.TopLevelGroup.Groups. For each group that has IsExpanded = true you can get the Category and store it in an array. Once you have reloaded the grid, you can then loop through that array of category keys and for each key do a find using groupingGrid.Table.TopLevelGroup.Groups.FindGroup(categoryKey). FindGroup returns an index that can be passed into groupingGrid.Table.TopLevelGroup.Groups[index]. With that group you could then set IsExpanded = true. Stefan


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

Live Chat Icon For mobile
Live Chat Icon