What is basic concept for tree view
1146
16-Sep-2016
Mark Devid
16-Sep-2016TreeNode is the keyword which is used to represent the node for the Treeview.
We need to define the name for the TreeNode
eg ;- TreeNode Node1
How to add 1st element in the node :
syntax tNode = treeView1.Nodes.Add("Country");
treeView1 is the name of the Tree view which is present in your form
Now, we can add many node to this node.
eg. treeView1.Nodes[0].Nodes.Add("India");
we can add many node to 2nd node
eg treeView1.Nodes[0].Nodes[0].Nodes.Add("Delhi");
Here is the complete code we can implement in our coding