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

"There is no Original data to access" error on Hierarchical archtical Grid

Thread ID:





7750 Oct 8,2003 11:55 AM UTC Oct 9,2003 12:39 PM UTC WinForms 4
Tags: GridControl
Asked On October 8, 2003 11:55 AM UTC

I have a hierarchical grid that has four levels. The third level down is the only level that can be updated through the grid. Everything works fine, until I add a row to the underlying datatable for this updatable level. The adding is being done through a separate form. Once the row is added, every time I try to update any other row, an "There is no Original data to access" error is thrown. Has anyone seen this problem? I found one entry on this site, but copying the dataset didn't seem to work with what I am doing. Calling AcceptChanges on the dataset is the only thing that helps, but that is not practical in this situation. Thanks for any help, peter

Administrator [Syncfusion]
Replied On October 8, 2003 06:05 PM UTC

The databound grids implementation does not support adding records to nested levels easily. It is quite a bit cumbersome, but these are things we will correct in 2.0 version with the Grouping grid and support for nested tables. That said I have two initial suggestions: You could try setting the .DataSource = null; and then set again .DataSource = originalDs; The reason for doing this is to force the grid to reset its internal recordstate mappings because they become out of sync. - Or - (better if that works ..) Another idea I do have is to Collapse the parent record for the nested level that you add a row to before you add the new row to the underlying child level. After you added the row the you can Expand the parent record again. That way the recordstate mappings will take the new record count of the child level correctly into consideration. Let me know if that helped. Thanks, Stefan

Replied On October 9, 2003 11:00 AM UTC

Those didn't seem to do the trick. I'm working in VB, so I tried setting the DS = nothing and back again. I also tried copying the dataset and setting the datasource to the copied dataset and I tried the collapse/expand suggestion. Do you have any other ideas? I'm worried its an dataset thing. I've found a couple issues like this online with master-detail setups with the standard MS grid. Thanks, peter

Administrator [Syncfusion]
Replied On October 9, 2003 12:38 PM UTC

Sorry, no other quick ideas. Can you put together a sample project using the NetSDK sample northwind database? I'll debug into it then. Stefan

Administrator [Syncfusion]
Replied On October 9, 2003 12:39 PM UTC

Or if you can just strip down your app that's also ok of course... Stefan


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