Is it possible to bind a single DataTable to a WebHierarchicalDataGrid at runtime with AutoGenerateColumns = true?
We try this and, while the DataBind method fires, the grid is empty.
Hi cantrellr,The WebHierarchicalDataGrid requires a hierarchical source, even for one level. So in this case, just add the DataTable to a DataSet and you will be good to go.
regards,David Young
Thanks David,
That is what we are doing. Then I bind that dataset. The DataBound event fires and we test for the number of rows in the grid and get a valid value. But, when returning back to the browser, the grid does not render.
Was able to get the grid to work if a bind on initial page load. Any subsequent attempts to bind data from other queries, once the page is loaded does not work. The code behind goes through the motions of databinding and I can even test that changes have occured, but when control is returned to the browser... nothing changes.