Hello. need help on treeview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hani
    New Member
    • Mar 2006
    • 4

    Hello. need help on treeview

    hi. i'm a newbie on c# and asp.net.

    sorry if this is a stupid questions.

    a. i put a treeview in my parent page. called 'TreeView1'
    b. i need to add a new tree node inside TreeView1

    Is it possible. can somebody give some code examples or a link which can lead me to do this. thank you.
  • balabaster
    Recognized Expert Contributor
    • Mar 2007
    • 798

    #2
    Code:
    Dim NewNode As New TreeNode("NewNode")
    NewNode.Value = "Node0_1_1"
    Destination = TreeView.FindNode("Node0\Node0_1\Node0_1_0")
    Destination.Nodes.Add(NewNode)

    Comment

    Working...