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
|
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!
|