remove selected treenode

  • Thread starter Thread starter John Devlon
  • Start date Start date
J

John Devlon

Hi,

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

Me.Treeview1.Nodes.Remove(Treeview1.SelectedNode)

but nothing is removed....



Does anyone have an idea ?

Thanx

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

Treeview1.Childnodes(index).remove
 
Back
Top