Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
add node in tree node and sql table
Posted
Comments
manognya kota 24-Jan-12 1:59am    
Could you please let us know...what have you tried and what is the error?

Hello,

I can show you how to add tree node to tree by programming.


TreeNode Nodenumber = new TreeNode(string.Format("<div>Sample</div>"));
tvCompenPhil.Nodes.Add(Nodenumber);

likewise you can add number of tree node, child nodes to tree view
 
Share this answer
 
v2
Hi,

can you be more specific?
If you want to add note in TreeView just create instance of TreeNode class and add it into the collection of Nodes of TreeView component.

If you want to populate TreeView from table, just check following links:
Populating a TreeView Control from the Database[^]

Fast Updating of Treeview Control With a Database in VB.NET[^]


Regards
Robert
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900