Results 1 to 6 of 6

Thread: TreeView Node Help

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    TreeView Node Help

    I'm adding a parent node to a treeview and then adding others, but I want to make sure that the first parent node added will stay last in the tree. How can I accomplish this?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    use the index property on the parent node

    Remember that a treeview has a root node as well

    make sure you are not setting the first parent as the root

  3. #3

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    ???
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    Addicted Member
    Join Date
    Apr 2001
    Location
    Phoenix
    Posts
    150
    Just add that node last with the root as its parent. Add the other nodes you want first.

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Dude, I need that node to be added first.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I think you'd have to save the node and then keep adding and deleting it to keep it last. Seems like there should be an easier way though. Maybe you can do somekind of sort and make sure it stays last that way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width