D
d_mike_2004
Hi,
i have been trying to add a treenode into a Treeview.
for example, say i have a tree as beloew:
Node1
Node2
Node3
Node4
Node5
Node6
how would i insert a node between Node2 and node3 ?
I tried to traverse to Node2 and add the newNode as below:
Node2.ChildNodes.Add(newNode)
So wat happen to Node3, or should i attach Node3 to the newNode first,
before add the newNode to node2?
Anyone have any sample code to share?
It should be simple. I have spent alot of time to work this out but
without success.
Thanks,
Mike
i have been trying to add a treenode into a Treeview.
for example, say i have a tree as beloew:
Node1
Node2
Node3
Node4
Node5
Node6
how would i insert a node between Node2 and node3 ?
I tried to traverse to Node2 and add the newNode as below:
Node2.ChildNodes.Add(newNode)
So wat happen to Node3, or should i attach Node3 to the newNode first,
before add the newNode to node2?
Anyone have any sample code to share?
It should be simple. I have spent alot of time to work this out but
without success.
Thanks,
Mike