Is there an example of binding the WebHierarchicalDataGrid to a Dataset at runtime?
The dataset would contain multiple tables with relations.
Thanks for any help.
Hello,
This sample shows how to bind the grid to a dataset. I know it does not show how the data set was actually created, but that should not be a problem, I'd imagine.
Is there any particular problem you are facing?
Thanks. I've seen that sample.
I've bound the dataset to the grid, but I'm getting an error alert when I try to expand a parent row:
"Runtime Exception: No child grid script descriptors are available!"
I'm manually setting the primary key on each table in the dataset. I'm then setting the relations in the dataset. The grid is set to autogenerate columns and bands. InitialDataBindDepth is set to 0. Is there something else I'm missing?
Hi,
i am getting the same problem "Runtime Exception: No child grid script descriptors are available!",
how did you solve it, i am also rebinding the grid, but the problem remain same.
can you help me how did you solve the above issue?
Thanks in advance.
Charles,
I ended up going back to the UltraWebGrid, as the WDHG did not lend itself to the amount of customization I required. Unfortunately, I no longer have the WDHG code, as it was an experiment on my part.
But...try clearing the the WDHG (table, columns, rows) before rebinding.
Lile
Iwoodell,
I'm using a WHDG and a WebHierchicalDataSource. The two DataViews are pointed to two datatables.
Sometimes on a postback, I want to refresh the WHDG. I refresh the two datatables, but when I try to rebind the WHDG, I either get a "Dataview does not have a DataSourceId" error or my grid is empty.
Could you share your code for rebinding the WHDG to fresh data on a postback?
Thx,
Charles
Alex,
I was able to determine the cause of the error was the format of a date column in the child band. After changing the format to 'mm/dd/yyyy' the issue cleared up.
Thanks
Can you post your code for generating your DataSet here? Thanks.