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.

Persisting Expanded Groups after a refresh

Thread ID:

Created:

Updated:

Platform:

Replies:

16085 Jul 6,2004 04:36 AM Jul 6,2004 11:46 AM Windows Forms 1
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On July 6, 2004 04:36 AM

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 11:46 AM

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

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.

;