Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

remove selected treenode

0 views
Skip to first unread message

John Devlon

unread,
Apr 21, 2008, 8:49:49 AM4/21/08
to

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

Andy

unread,
Apr 21, 2008, 1:13:54 PM4/21/08
to
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

John Devlon

unread,
Apr 21, 2008, 2:38:25 PM4/21/08
to
Thanx Andy

John

"Andy" <ane...@infotek-consulting.com> schreef in bericht
news:2178c8ee-cf61-42c8...@p25g2000pri.googlegroups.com...

0 new messages