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.

Displaying Child Rows Immediately on a Hierarchical Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

23806 Jan 20,2005 02:29 AM Jan 26,2006 07:32 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 20, 2005 02:29 AM

I''m using GridDataBoundGrid bound to a custom collection. I''m displaying a hierarchical grid. What do I need to do to ensure that when a row is expanded any new child rows for that row are displayed on the grid? Currently I have to collapse and expand the parent row before the new child rows are displayed. Thanks, Ben.

Administrator [Syncfusion]
Replied On January 20, 2005 02:40 AM

The only solution we have for this is to close and re-open the node from code. You can use grid.BeginUpdate/grid.EndUpdate to prevent the flash that would normally be seen when you close and open a node. Here are several forum thread on inserting/deleting an dgenerally working with child grids. The sample links in the threads are broken, but the new links are give below. For the link in http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=7027, use http://64.78.52.104/support/user/uploads/updateableexpandgrid.zip For the link in http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9290, use http://64.78.52.104/support/user/uploads/sortexpanded.zip For the link in http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=13894, use http://64.78.52.104/support/user/Uploads/UpdateableExpandGrid_VB_3994.zip

ofer
Replied On January 26, 2006 03:05 AM

i''m having the same problem and i''ve noticed that calling BeginUpdate/EndUpdate doesn''t help me becuase when calling CollpaseAtRowIndex, you are calling (i looked in syncfusion source) also BeginUpdate/EndUpdate thus causing the grid to refresh (i looked in GridModelDataBinder.CollapseRecord). how can i overcome this problem?

stanleyj [Syncfusion]
Replied On January 26, 2006 07:32 AM

Hi Ofer, In a GridDataBoundGrid, you would have to save the expand states before the updates and restore them afterwards. Freezepainting technique that is mentioned in the thread 9290 has to avoid flickering, also refer this thread below that has C# and VB sample. http://www.syncfusion.com/support/forums/message.aspx?MessageID=38024 Best regards, Stanley

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.

;