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
235
Assigning data to WHDG!
posted

Please find attached sample. We have two WHDG.

We are assigning the WHDG instance to other WHDG instance. We want to assign it same way.

But when we run it, assigned data to second WHDG doesn't show data on the page.

Can you please look at attachment & provide the solution?

Thanks for your help!

WebHierarchicalDataGridSample1.zip
Parents
No Data
Reply
  • 20255
    Offline posted

    Hello Parikshit,

    Thank you for using our forum.

    It is not possible to assign directly WHDG instance to another. If you want to get the data from the first Grid and assign it to the Second Grid, you should use DataSource object, but not in the way that you are doing it in the provided sample. For example if the data that you are assigning to the first grid is coming from a DataSet, assign the same DataSet to the second Grid. If it is coming from SqlDataSource, assign the SqlDataSource ID to the DataSourceID of the Second Grid.

    this.WebDataGrid1.DataSourceID = "NorthwindDS";
    

Children