-
1 Attachment(s)
[2005] Tree
Hi,
I have to populate the tree with fixed filed in Tree i.e
Grand, Parent, child, GrandChild, GrandChildNo, Name.
Tree will be : Main Tree - Grand Nodes - Parent Nodes - Child Node -
Grand Child Nodes -GrandChildNo.- Names (leaf)
(If Grand Child is Y than create a node of child name and pupolate
the name under that node. and Double click event will fire in case of leaf click)
ex:
-Tree
|
|-M
||
||+M
||-T
| |_C
| |-D
| | |-D1
| | |-D2
| |-E
|+S
I attched my code (vb 2005) with database (access 2000). Pls check the code and
guide how to achive the result.
thanks
-
Re: [2005] Tree
Hi,
To add newnodes to your treeview, you can try this:
Code:
' Adds new node as a child node of the currently selected node.
Dim newNode As TreeNode = New TreeNode("Text for new node")
TreeView1.SelectedNode.Nodes.Add(newNode)
Hope it helps,
sparrow1