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

Editing Hierarchial Grids

Thread ID:

Created:

Updated:

Platform:

Replies:

7511 Sep 29,2003 11:08 AM Sep 30,2003 08:22 AM Windows Forms 3
loading
Tags: GridControl
Erlly Bayuelo
Asked On September 29, 2003 11:08 AM

I am trying to edit a cell in a master-detail data bound grid. After I edit the cell and step out of it the grid blanks out and I get a big red X across the grid. I also get a dialog which says "There is no Original data to access." The hierarchy is set up as follows: this.gridDBMaster1.DataSource = dsAccounts; this.gridDBMaster1.DataMember = dsAccounts.Tables[0].TableName ; // returns the new hierarchy objects GridHierarchyLevel hlInstruments = this.gridDBMaster1.Binder.RootHierarchyLevel; GridHierarchyLevel hlPositions = this.gridDBMaster1.Binder.AddRelation("InstrumentToPosition"); Has anyone come across this message? Are hierarchial grids editable?

Administrator [Syncfusion]
Replied On September 29, 2003 02:36 PM

The message "There is no Original data to access." usually indicates that somehow the grids reference to a related list is somehow out of sync with the underlying tables. The tricky question is why did that happen. Can you provide us with a sample and steps to reproduce the problem so that we debug into it and analyze why that happens? You can open a support incident for this. That would be the easiest. Stefan

Erlly Bayuelo
Replied On September 30, 2003 06:30 AM

I debugged the problem further and it is not really related to the master-detail setup. I tried to use the datasource as a single table grid and the problem persisted. I got around the problem by copying the datasource and then attaching it to the grid : DataSet ds = dsOriginal.Copy() grid.DataSource = ds This seems to work even with a master-detail hierarcy setup. Therefore, I think it is not a grid problem but somehow there is something wrong with that particular dataset.

Administrator [Syncfusion]
Replied On September 30, 2003 08:22 AM

Ok, if it works with a copy of the original object (the dataset) I have the feeling that somehow that original dataset is disposed/closed while the grid still has a reference to it. If that can happen using a copy of the object is a really good idea. Stefan

CONFIRMATION

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.

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.

;