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
SIGN IN To post a reply.
4 Replies
AD
Administrator
Syncfusion Team
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.)
AD
Administrator
Syncfusion Team
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.)
>
>
>
>
AD
Administrator
Syncfusion Team
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.)
>
>
>
>
AD
Administrator
Syncfusion Team
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.
SIGN IN To post a reply.
- 4 Replies
- 1 Participant
-
AD Administrator
- Dec 12, 2003 02:10 PM UTC
- Dec 12, 2003 10:03 PM UTC