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

Collapsing grid

Thread ID:





26545 Mar 24,2005 07:18 PM UTC Mar 25,2005 01:43 AM UTC WinForms 1
Tags: GridControl
Asked On March 24, 2005 07:18 PM UTC

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?

Administrator [Syncfusion]
Replied On 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


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