treeview data problem

alreadyused

Well-known member
Joined
Jan 13, 2006
Messages
70
Me said:
I have a post here:
http://www.computerhelp.forum/showthread.php?p=452663#post452663
if you want to know where Im coming from on this. But thats just for general direction.

I now have an error and need some help. I have three different objects (Jobs, Products, Revisions)
I am wanting to list these in a tree
Jobs
|__Projects
|_Revisions

Im having a hard time with this command:
formJobClient.tvwData.Nodes(strNodeParent).Nodes.Add(strNodeChild)
because the parent node, where I have strNodeParent, is wanting an integer for the index, rather than the name of the node.

Given the name of the parent node, how do I find the index position of it?

For example, I know the parent node is named "1-Job A", but I have no clue how to get the index position... any thoughts?
Sorry all, I should have done a better job searching.

Just found these links:
http://www.computerhelp.forum/showthread.php?t=69225&highlight=treeview+index
http://www.computerhelp.forum/showthread.php?t=69215&highlight=treeview+index

I think those will take care of me...
 
Last edited by a moderator:
Back
Top