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

Collapsing grid

Just a quick question. I am working with a hierarchical GDBG and in the RowSaved event I issued an AcceptChanges on the datasource. This caused the grid to collapse. Why and how can I make it not collapse?

1 Reply

AD Administrator Syncfusion Team March 25, 2005 01:43 AM UTC

AcceptChanges causes a ListChanged event to be raised on the data source with ListChangedType.Reset. It is in response to this reset that the grid collapses. There are no property setting that will avoid this. You can save the expand state prior to the DataTable.AcceptChanges and then reset it afterwards. You can also freeze the painting to avoid seeing a flash. Here is a forum thread that discusses using this technique to save the expand state before and reset it after a sort. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=16065

Loader.
Live Chat Icon For mobile
Up arrow icon