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
410
DataView has no DataSource or DataSource set
posted

For WebHierarchicalDataSource ,'DataView has no DataSource or DataSource set 'error gets displayed.WebHierarchicalDataSource

Web grid’s DataSourceId property  is set to WebHierarchicalDataSource.ID property. InitializeDataSource event is also added .But not any success.

Parents
No Data
Reply
  • 3147
    posted

    Hi,

    When exactly the exception is thrown, on initial page load or on postback?

    If you are binding the DataViews in the code behind make sure that you do that before the data binding of the grid.

    If you still experience difficulties with that please submit a sample web site or just the source code and we will try to reproduce and fix the issue.

Children
No Data