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.

Maintaining state of expanded grid

Thread ID:

Created:

Updated:

Platform:

Replies:

5172 Jun 23,2003 01:06 PM Jun 23,2003 03:47 PM Windows Forms 2
loading
Tags: GridControl
Russell Simmons
Asked On June 23, 2003 01:06 PM

My form has a hierarchical grid that needs to be refreshed after a dialog displayed on top is set to nothing. I need to be able to re-display the grid in the same state that the user left it at. For example, multiple rows may have been expanded prior to displaying the dialog. When the grid is re-displayed, the same rows should still be expanded. Any ideas on the best course of action?

Administrator [Syncfusion]
Replied On June 23, 2003 03:23 PM

Attached is a sample the retains the expand states of a grid before and after a sort. During a Sort, there is a LisChanged.Reset done, whcih caused the grid to reset itself, and this causes a painting problem where a BeginUpdate does work to freeze the painting. To avoid this problem, this sample uses a Win32 API call. If you just want to save and restore the expand states, you may not need this additional technical code.

Russell Simmons
Replied On June 23, 2003 03:47 PM

Thanks. I'll try this out. > Attached is a sample the retains the expand states of a grid before and after a sort. > > During a Sort, there is a LisChanged.Reset done, whcih caused the grid to reset itself, and this causes a painting problem where a BeginUpdate does work to freeze the painting. To avoid this problem, this sample uses a Win32 API call. If you just want to save and restore the expand states, you may not need this additional technical code. > >

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.

;