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!
Hello Parikshit,
Have you been able to resolve the issue?If you have any concerns or questions, please feel free to contact me, I will be glad to help you.
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";