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
4160
Loading from a table that uses a HierarchyID column
posted

Hello

Suppose that in a SQL Server 2008 database there is a table MyNodeTable(#NodeKey, NodeName) where the NodeKey column is of type HierarchyID. What would be the recommended way of loading an UltraTree control from this table?

Thanks a lot.

  • 469350
    Offline posted

    How you load the tree with data depends on the needs of your application. But you basically have two options.

    1) Bind the tree to a data source containing the data you want.

    2) Loop through the data and add the nodes to the tree in code.