Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. adding child to parent node in a treeview.

adding child to parent node in a treeview.

Scheduled Pinned Locked Moved ASP.NET
help
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2071301
    wrote on last edited by
    #1

    Hi all, i m using a treeview control. i m successful in adding nodes at run time, but my problem is tht i wanted to add nested treenodes. that means root node child one of root node child one of child one child two of child one ----- ------- child 'n' of child one child two of root node child one of child two child two of child two ----- ------- child 'n' of child two ----- ------- child 'n' of root node can anybody help me i 've added treenode as child one but now i want to add child of child one at run time.

    C 1 Reply Last reply
    0
    • U User 2071301

      Hi all, i m using a treeview control. i m successful in adding nodes at run time, but my problem is tht i wanted to add nested treenodes. that means root node child one of root node child one of child one child two of child one ----- ------- child 'n' of child one child two of root node child one of child two child two of child two ----- ------- child 'n' of child two ----- ------- child 'n' of root node can anybody help me i 've added treenode as child one but now i want to add child of child one at run time.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Select the node you want to add to, and add the new child to it's child collection, instead of at the root. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups