Hi,
I want to add Child and Parent node in the same name(e.g Node1). It is giving exception as key already exist.
UltraTreeNode parentNode= new UltraTreeNode("Node1");
UltraTreeNode childNode= new UltraTreeNode("Node1");
parentNode.Nodes.Add( childNode);
Only name(key) is same as Parent and Child node, and it throws exception.
Could you please let me know to add Child node with same name.
Node keys have to be unique across the entire tree.So you can't have two nodes with the same key, even if those nodes are on different levels.
There is no such restriction on the Text property of the node, though. So you can have the same text on as many nodes as you want.
Please let me know what is the use of below properties in WinTree.
1.<UltraTreeNode>.Nodes.AllowDuplicateKeys2. <UltraTreeNode>.Nodes.AllowEmptyKeys
Thanks in advance.
Thanks Mike.
Is there any way to generate different keys(for nodes at different levels), from the WinTree?