468,765 Members | 845 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

custom nested lists and getting level and parent

Hi everyone ! In first sorry for my bad english, I'm french.

I try to make a custom TreeView and a custom TreeNode. For storing child nodes in my customTreeNode, I use a List(Of MyTreeNode).
I discovered recently the recursivity and I can looking for child nodes in a node.

My problem is to get the level of the current node, or getting the parent node of the current one.
I think that these two properties are in close relation, but I don't understand how the real TreeNode manages to inform this "level" property right after having added nodes in TreeNodeCollection.

So, is there a recursive way for going up in the parent for nested lists in general ?

Thank you in advance for your councils.
Apr 5 '10 #1
0 713

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Jane Withnolastname | last post: by
11 posts views Thread by C# Learner | last post: by
1 post views Thread by Smoke | last post: by
9 posts views Thread by John Sidney-Woollett | last post: by
1 post views Thread by Joseph Scoccimaro | last post: by
19 posts views Thread by Jamey Shuemaker | last post: by
3 posts views Thread by James | last post: by
1 post views Thread by shapper | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.