remove selected treenode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Devlon

    remove selected treenode


    Hi,

    I would like to delete a selected treenode and all treennodes below the
    selected one...
    I've tried ...

    Me.Treeview1.No des.Remove(Tree view1.SelectedN ode)

    but nothing is removed....



    Does anyone have an idea ?

    Thanx

    John



  • Andy

    #2
    Re: remove selected treenode

    If you are referring to the treenode from webcontrols, then you need
    to obtain the treenodescollec tion for the treeview and invoke its
    remove method on the indexed child node:

    Treeview1.Child nodes(index).re move

    Comment

    • John Devlon

      #3
      Re: remove selected treenode

      Thanx Andy

      John



      "Andy" <anedza@infot ek-consulting.coms chreef in bericht
      news:2178c8ee-cf61-42c8-bdec-de64209727df@p2 5g2000pri.googl egroups.com...
      If you are referring to the treenode from webcontrols, then you need
      to obtain the treenodescollec tion for the treeview and invoke its
      remove method on the indexed child node:
      >
      Treeview1.Child nodes(index).re move

      Comment

      Working...