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. Image for the cookie policy date

Question about the sample UpdateableExpandedGrid

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

4 Replies

AD Administrator Syncfusion Team December 12, 2003 09:53 AM

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.)


AD Administrator Syncfusion Team December 12, 2003 10:22 AM

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.) > > > >


AD Administrator Syncfusion Team December 12, 2003 10:30 AM

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.) > > > >


AD Administrator Syncfusion Team December 12, 2003 05:03 PM

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

Loader.
Live Chat Icon For mobile
Up arrow icon