954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Treeview Child Nodes

I am trying to add child nodes to a Treeview list, I have the parent node and this is the code I have to add the child node:

parentNode = New TreeNode()
        parentNode.Text = Me.headerSelect.Text.ToString
        parentNode.Nodes.Add(Me.fieldName.Text.ToString)


It doesn't do anything - no errors, no adding, nothing.. Also if it is possible, could I store an array of values in a treeview? I am writing a program that will create a database and I need to store the field name, data type, and default value all together as the user inputs them, and this would be easiest in an array - so if I can store that kind of information in a treeview I would appreciate a point in the right direction.

Mr.Wobbles
Light Poster
49 posts since Jun 2007
Reputation Points: 10
Solved Threads: 2
 

it is solved??

Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
 

I solved it myself, and since this happens to me often, I have stopped posting how I did it..

Mr.Wobbles
Light Poster
49 posts since Jun 2007
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You