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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Question about the sample UpdateableExpandedGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

9290 Dec 12,2003 02:10 PM UTC Dec 12,2003 10:03 PM UTC WinForms 4
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 12, 2003 02:10 PM UTC

Hi Clay (or anyone in Syncfusion), I am attaching a sample provided by you earlier. It works pretty good for dynamically adding and removing rows without collapsing. However, there is one issue: If I expand a parent node and then add/remove another patent node, all expanded nodes will collapse again. No problem for adding/removing child nodes. I cannot figure out how to fix it. Any suggestions? Thanks a lot Chris updateableexpandgrid_9872.zip updateableexpandgrid_9233.zip

Administrator [Syncfusion]
Replied On December 12, 2003 02:53 PM UTC

I don''t know of a easy way to handle this. One solution is to freeze the painting on the form using interop. This techique is discussed in one of our Windows Forms FAQs, http://www.syncfusion.com/faq/winforms/search/637.asp Here is a different sample. This sample keeps the expand states the same before and after a sort. In order to prevent the flash of the root level collapsing with the sort, the drawing is frozen. It adds a new property to your derived grid to feeze the screen painting through a Win32 API call. (These type of problem go away in the new 2.0 GridGroupingControl.)

Administrator [Syncfusion]
Replied On December 12, 2003 03:22 PM UTC

THanks Clay. The sample works nicely, but it seems there is no FreezePainting property in C#, did I miss something? >I don''t know of a easy way to handle this. > >One solution is to freeze the painting on the form using interop. This techique is discussed in one of our Windows Forms FAQs, > >http://www.syncfusion.com/faq/winforms/search/637.asp > >Here is a different sample. This sample keeps the expand states the same before and after a sort. In order to prevent the flash of the root level collapsing with the sort, the drawing is frozen. It adds a new property to your derived grid to feeze the screen painting through a Win32 API call. > >(These type of problem go away in the new 2.0 GridGroupingControl.) > > > >

Administrator [Syncfusion]
Replied On December 12, 2003 03:30 PM UTC

sorry. just read your link >I don''t know of a easy way to handle this. > >One solution is to freeze the painting on the form using interop. This techique is discussed in one of our Windows Forms FAQs, > >http://www.syncfusion.com/faq/winforms/search/637.asp > >Here is a different sample. This sample keeps the expand states the same before and after a sort. In order to prevent the flash of the root level collapsing with the sort, the drawing is frozen. It adds a new property to your derived grid to feeze the screen painting through a Win32 API call. > >(These type of problem go away in the new 2.0 GridGroupingControl.) > > > >

Administrator [Syncfusion]
Replied On December 12, 2003 10:03 PM UTC

Check out the FAQ reference I gave. It shows you how to add the freezing property using interop.

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.

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

;