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.

GridGroupingControl - saving the expanded rows

Thread ID:

Created:

Updated:

Platform:

Replies:

62056 Jun 7,2007 12:02 AM Jun 9,2007 10:35 AM Windows Forms 2
loading
Tags: GridControl
Dave Busch
Asked On June 7, 2007 12:02 AM

Hello,

I have a grid with one parent and one child table. What I want to do is this:

1) Expand a few parent rows to display their child rows

2) Refresh all of the data (which repopulates the grid and collapses all of the parent rows)

3) Automatically re-expand the parent rows that were already expanded in step #1 to display thier child rows again.


Any help is appreciated - I thought this issue may exist in another thread, but I could not find it. Thanks for your time!

Rajagopal [Syncfusion]
Replied On June 7, 2007 04:44 PM

Hi Dave,

You can loop through the records in the parent and save thier expanded and collapsed state in a hashtable with its record index as the key. Then at a later point when you refresh the data, restore the expanded and collapsed states of the parent records. Please refer the attached sample that will help you in doing this.

Here is a sample
http://websamples.syncfusion.com/samples/Grid.Windows/F62056/main.htm

Regards,
Rajagopal

Dave Busch
Replied On June 9, 2007 10:35 AM

Works great - thank you so much!

>Hello,

I have a grid with one parent and one child table. What I want to do is this:

1) Expand a few parent rows to display their child rows

2) Refresh all of the data (which repopulates the grid and collapses all of the parent rows)

3) Automatically re-expand the parent rows that were already expanded in step #1 to display thier child rows again.


Any help is appreciated - I thought this issue may exist in another thread, but I could not find it. Thanks for your time!

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.

;