Welcome Guest Search | Active Topics | Sign In | Register

select a node by coding Options
bvanacker
Posted: Wednesday, September 16, 2009 10:39:42 AM
Rank: Member
Groups: Member

Joined: 3/27/2009
Posts: 12
Hi,

Is there a way to select a node in a treeview by coding
for example like this :
For Each node As EO.Web.TreeNode In treeview.Nodes
If node.Value = tempselectednodevalue Then
node.Selected = True
End If
Next
eo_support
Posted: Wednesday, September 16, 2009 12:16:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. You can do that except that you need to do it recursively. treeview.Nodes only contains the top level nodes. You will want to check each node's ChildNodes collection and the child node's ChildNodes and so on.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.