Treeview problem

Lucas

Registered User.
Local time
Today, 01:41
Joined
Feb 25, 2005
Messages
11
Hey everyone,

I have a treeview control which is based on a table.

For some reason it won't fill properly, it doesn't add the nodes under the correct parent. If someone could look at the attached file and help me out I'd appreciate it.

Lucas
 

Attachments

Lucas,

You should use more than one letter in the nodes title.

See attached example.
 
Last edited:
Thanks for the reply, but that doesn't solve my problem.

If you look in the attached file, object number 7 should be a child of number 3, but for some reason it ends up under number 5....

Lucas
 

Attachments

Last edited:
Please see attached. These might be some good examples of treeviews.

Hope that helps.
 
Last edited:
Here's a solution. I believe the problem was that though you were adding an "a" in front of the key of child nodes, your add routines were referencing the parent without the "a" in front. Given this omission your nodes were probably being added to the parents indexed as 1, 2, or 3 in the nodes collection, rather than the nodes that were keyed in the collection as "a1", "a2", or "a3".

Cheers,
Mark
 

Attachments

Users who are viewing this thread

Back
Top Bottom