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.

Grouping grid Group Expansion problems

Thread ID:

Created:

Updated:

Platform:

Replies:

40156 Jan 26,2006 12:00 PM Jan 26,2006 10:10 PM Windows Forms 1
loading
Tags: Grouping
Sachin Bamel
Asked On January 26, 2006 12:00 PM

I am using Databound Grouping Grid. To Optimize its performance I removed ListchangedEvent and In my OnTimerEvent I am calling mGroupingGrid.Table.TableDirty =true; mGroupingGrid.TableControl.Refresh(); This refreshes the grouping grid after a fixed interval to reflect changes in my view. After doing these changes I got into a problem. Now whenever I try to expand a group it expands and gets closed immediately. This could be because of Refresh method I am using. Is there any other way I can refresh the grid or Do I need have to do some special event handling for mGroupingGrid.Table.GroupExpanded event. Thanks for your response in advance.

Administrator [Syncfusion]
Replied On January 26, 2006 10:10 PM

Hi Sachim, when you set TableDirty = true the grid does recreate the groups and records stored in the table. Therefore your group expansion state is lost. In order to preserve this state you will have to remeber the group ids of the groups that are expanded (e.g. listen to GroupExpanded event and then remeber group.Category). Later after the refresh you can find groups by the category id with Table.TopLevelGroup.Groups.FindGroup(category) and then set the group expanded. Stefan >I am using Databound Grouping Grid. To Optimize its performance I removed ListchangedEvent and In my OnTimerEvent I am calling > >mGroupingGrid.Table.TableDirty =true; >mGroupingGrid.TableControl.Refresh(); > >This refreshes the grouping grid after a fixed interval to reflect changes in my view. > >After doing these changes I got into a problem. >Now whenever I try to expand a group it expands and gets closed immediately. This could be because of Refresh method I am using. Is there any other way I can refresh the grid >or Do I need have to do some special event handling for mGroupingGrid.Table.GroupExpanded event. > >Thanks for your response in advance. >

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.

;