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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Displaying Child Rows Immediately on a Hierarchical Grid

Thread ID:





23806 Jan 20,2005 07:29 AM UTC Jan 26,2006 12:32 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On January 20, 2005 07:29 AM UTC

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 07:40 AM UTC

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 For the link in http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=9290, use For the link in http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=13894, use

Replied On January 26, 2006 08:05 AM UTC

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 12:32 PM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon