Find the parent node

R

Rob Stevens

When restoring nodes to a tree, how can you tell what is
the parent of that node?

Also how can you get a handle to the parent node, this way
you can insert the node into the correct place?

example.

Parent1, Level0
Child1, Level1
Child2, Level1
Child3, Level2
Child4, Level3

This would look like

Parent1
-Child1
-Child2
-Child3
-Child4

If I insert Parent1 into the tree, how can I get a handle back to parent1
when
I get ready to insert Child1 into the tree and vice versa for all the other
nodes.

Appreciate the help.


Rob
 
P

Peter Duniho

When restoring nodes to a tree, how can you tell what is
the parent of that node?

The last time you asked this question, I posted a detailed answer along
with a link to another post I'd written as a response to a very similar
question asked by someone else.

You replied that the information appeared helpful and that you would try
using it.

The TreeView and TreeNode classes haven't changed since I made that post,
so there's not really anything new anyone can offer. What about the
previous information provided to you have you been having trouble with?

Pete

p.s. The thread's name was "Unique identifier in every treenode". For
some reason, while it's still in my local newsgroup message cache, I
cannot find that thread in Google Groups. I don't suppose anyone has any
idea why that is, do that? It seems to be in all sorts of other archives
of this newsgroup (do a regular web search on Google and you'll find it).
But not in the Google Groups archive. Very odd.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top