469,291 Members | 1,748 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,291 developers. It's quick & easy.

Cloning Treenodes

Hi All.

I'm cloning a treenode, like so:

TreeNode trNewTemp = new TreeNode();
trNewTemp = ((((ICloneable)trTempNode).Clone()) as TreeNode);

Now the cloning works- trNewTemp has the same content and properties
as trTempNode. The problem is, the treenode I'm cloning has multiple
childnodes, and childnodes of those childnodes.... it's about 6 deep.
The cloned node only has the root level node, not the childnodes. Is
there a way I can clone the whole treenode, without enumerating all
six levels?
Aug 8 '08 #1
0 1044

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by meh | last post: by
8 posts views Thread by kurotsuke | last post: by
8 posts views Thread by Tom | last post: by
3 posts views Thread by AVL | last post: by
1 post views Thread by Dan Dorey | last post: by
2 posts views Thread by =?Utf-8?B?anAybXNmdA==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.