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
1140
Code-behind for a single DataTable
posted

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. 

Parents
No Data
Reply
  • 33839
    Suggested Answer
    posted

    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 

Children