Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
895
Error setting property 'DataSourceID' to value WebHierachicalDataSource1'. Details: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases
posted

I'm evaluating the infragistics ASP.NET 2011 V1 controls for our new project.

Using Windows 7 and VS2010 I'm trying to hook up a Access2000 database to the WebHierarchicalDataGrid.

However, when I click on the grid and set the DataSourceID to WebHierarchicalDataSource1 I get an error.

It first asks if I'd like to regenerate the WebHierarchicalDataGrid bands, I say YES.

Then I get a "Error setting property 'DataSourceID' to value WebHierachicalDataSource1'. Details: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases."

I press the OK button on the error box to close it.

Looking at the properties for the grid I see that the DataSourceID is set, but the DataMember and DataKeyFields are NOT set.

When I display the web page the data shows up as expected.

However, the biggest issue I have is that when I look at the band collection there is only one item, the RootBand. If I click on the Columns collection in this RootBand there are no WebDataGrid columns.

How do I fix the error that is showing up?

How do I edit the appearance of a column in a particular band if there are no bands being created?

I also tried to refresh the schema, and it gives me a different error: "Error invoking 'Refresh Schema'. Details: Exception has been thrown by the target of an invocation.