treeview control of .net 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neelabhsrivastava
    New Member
    • Sep 2007
    • 1

    treeview control of .net 2005

    Hi! I'm working with treeview control (lang-VB) on a form and i want to add nodes & sub-nodes to it as entered by user. After that i want to retrieve all the values & wanna send them in different tables. Does anyone knows solution of this problem?
  • talhaekram
    New Member
    • Apr 2007
    • 14

    #2
    To add a node in tree view:

    TreeNode node4 = new TreeNode("Inser t Files", "Insert Files", "", "~/AddFiles.aspx", "");

    node3.ChildNode s.Add(node4);

    To retrieve values:

    while (i < TreeView1.Nodes .Count)
    {
    if (TreeView1.Node s[i].Text == "Add User")
    value = TreeView1.Nodes[i].text ;
    else
    i++;
    }

    Comment

    Working...