Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

I have a post here:

http://www.xtremedotnettalk.com/showthread.php?p=452663#post452663

if you want to know where I'm coming from on this. But that's 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

 

I'm 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.xtremedotnettalk.com/showthread.php?t=69225&highlight=treeview+index

http://www.xtremedotnettalk.com/showthread.php?t=69215&highlight=treeview+index

 

I think those will take care of me...

Edited by alreadyused

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...