Is this possible to name the nodes of a Treeview control something like Matrix?
For Example:
Parent Node
--> Child Node
--> Grand child node
Other Parent Node
To (Something like this)
-- Node1
--> Node11
--> Node111
--> Node112
--> Node1121
--> Node12
--> Node13
-- Node2
I am adding the nodes and child nodes by Button click btnAddNode and btnAddChildNode
Now I am just incrementing a counter value which is not catching whether the node is child or parent (just incrementing)
The simplest solution is using these two simple methods. First is adding TreeNodes to the TreeView control and the second adds the child nodes to the already added nodes.
And to check if it’s working you can do something like this: