By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Dynamic Tree View Control

P: 1
Hi

Can we add dynamiclly nodes and information in tree view control.
Jan 14 '08 #1
Share this Question
Share on Google+
2 Replies


QVeen72
Expert 100+
P: 1,445
Hi,

Yes, you can..
This code will add to the root:
Expand|Select|Wrap|Line Numbers
  1. TreeView1.Nodes.Add , tvwChild, , "New Root Node"
  2.  
This will add as a Child Node to selected node
Expand|Select|Wrap|Line Numbers
  1. TreeView1.Nodes.Add TreeView1.SelectedItem.Key,tvwChild, , "New Child"
  2.  
Regards
Veena
Jan 14 '08 #2

debasisdas
Expert 5K+
P: 8,127
Please find a related discussion here.
Jan 14 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.