Welcome Guest Search | Active Topics | Sign In | Register

Treeview switching between Selected Style and Normal Style Options
Glenn Dardick
Posted: Sunday, November 14, 2010 2:37:50 PM
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.
Glenn Dardick
Posted: Sunday, November 14, 2010 2:45:32 PM
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


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.