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
120
Wintree DataSource
posted

I am very new to WinTree.   

My project has a UserControl tree I have  been able to code the creation of the tree with static parent and child nodes. 

Basicly useing:

        Dim treeBatchNav As UltraTree
        Dim node As UltraTreeNode
        Dim childNode As UltraTreeNode
        treeBatchNav = New UltraTree

        With treeBatchNav

            node = .Nodes.Add("Claim Node 1 TEST") 'Claim Number
            ' Add some child nodes for claim pages.
            childNode = node.Nodes.Add("Page node 1TEST") 'Claim Page
            childNode = node.Nodes.Add("Page node 2TEST") 'Claim Page
            childNode = node.Nodes.Add("Page node 3TEST") 'Claim Page
            childNode = node.Nodes.Add("Page node 4TEST") 'Claim Page

            ' Add root nodes for claim numbers
            node = .Nodes.Add("Claim Node 2TEST") 'Claim Number
        End With
        group.Container.Controls.Add(treeBatchNav)

 

Now I want to create these based off of a datasource well two if I can. 

I have a tableadapter that lists claim numbers.  For each claim number that is returned I want that to be a parent node.

Under each Parent node.  I would like to reach out to a second tableadapter that has the pages listed.
I would create a child Node for each page. (I can hard code the pages if I have too.) 

So this is what I envision but can not find help on hardcoding datasources in VB. 

With treeBatchNav
   With claimdatasource
       whilenot eof
              node = .Nodes.Add(claimnumbercolumnvalue) 'Claim Number
                With pagedatasource
                    whilenot eof
                         childNode = node.Nodes.Add(pagecolumnvalue) 'Claim Page
                    move.next
                End With
        move.next
   End With
End With

 

I am guessing completely off base on how to even acomplish this.  Please point me to the appropriate help documents or help me out here.

 

 

Parents Reply Children
No Data