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

Displaying Child Rows Immediately on a Hierarchical Grid

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.

3 Replies

AD Administrator Syncfusion Team 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

OF ofer 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?

ST stanleyj Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon