I want to copy selected node and its parent from one web treeview control to other.
We would suggest that you can try to retrieval the selected node's parents and store the selected node and its parent node into a hashtable/multidimensional array with parent-child order, or child-parent order. And then you can retrieval the hashtable/
multidimensional array and add the nodes to another TreeView.
Amanda Wang
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
deeepuss
0 Points
1 Post
How do I copy selected node from one tree view to other tree view ( Its Web TreeView Control)
Sep 12, 2008 11:08 AM|LINK
I want to copy selected node and its parent from one web treeview control to other.
ramireddyind...
All-Star
31358 Points
4579 Posts
Re: How do I copy selected node from one tree view to other tree view ( Its Web TreeView Control)
Sep 12, 2008 11:44 AM|LINK
TreeNode trnode = new TreeNode(tvSource.SelectedNode.Text, tvSource.SelectedNode.Value);
tvDest.Nodes.Add(trnode);
Amanda Wang ...
All-Star
30008 Points
3104 Posts
Re: How do I copy selected node from one tree view to other tree view ( Its Web TreeView Control)
Sep 15, 2008 08:24 AM|LINK
Hi,
We would suggest that you can try to retrieval the selected node's parents and store the selected node and its parent node into a hashtable/multidimensional array with parent-child order, or child-parent order. And then you can retrieval the hashtable/ multidimensional array and add the nodes to another TreeView.
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.