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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Losing update on Parent Row

Thread ID:





36863 Nov 11,2005 09:31 AM UTC Nov 11,2005 11:07 AM UTC WinForms 2
Tags: Grouping
Theo Danzfuss
Asked On November 11, 2005 09:31 AM UTC

I have a Grid where only ONE parent record is allowed to be expanded at a time. To enforce this I call Table.CollapseAllRecords in my RecordExpanding event handler. This seems to work fine except in the following scenario. When a User edits the parent Record I expand the Record out of code - this causes the RecordExpanding event to fire and close other open rows, BUT I lose the update on the parent row. The value still appears in the grid, but not in the underlying DataTable? Is there any other way I can enforce Only one expanded row at a time? Calling Collapse in the Expanding event seems Counterproductive? Regards. TD

Administrator [Syncfusion]
Replied On November 11, 2005 11:05 AM UTC

Instead of calling Table.CollapseAllRecords, you can just have a variable that tracks the opened record. Then you could just call Collapse on that single record instead of resetting the entire table. Does this make a difference in the problem you are seeing?

Administrator [Syncfusion]
Replied On November 11, 2005 11:07 AM UTC

Another thing you could try is to call this.gridGroupingControl1.CurrencyManager.EndCurrentEdit(); before you collapse anything to see if that will avoid the problem as well.


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