Rank: Newbie Groups: Member
Joined: 11/11/2010 Posts: 8
|
I am selecting a parent node in the treeview via code. I am able to change it as follows:
TreeView1.SelectedNode.ParentNode.Selected = True
However, the child node is still highlighted and the parent node is not - even though it is selected.
I have tried to select the styles, but have not had much luck.
|
Rank: Newbie Groups: Member
Joined: 11/11/2010 Posts: 8
|
oops - never mind...
I needed to deselect the current selected node first as follows:
Dim anode As EO.Web.TreeNode anode = TreeView1.SelectedNode.ParentNode TreeView1.SelectedNode.Selected = False anode.Selected = True
|