Need to change the style of the selected node of the treeview .

jophin

New member
Joined
Jun 4, 2008
Messages
4
Programming Experience
Beginner
Hi ,
I am having a tree view control.I want to change the css class (Background color) of the selected node of the tree view . I tried like this

HTML:
<selectednodestyle cssclass="ClassName" font-underline="false" horizontalpadding="0px" verticalpadding="0px" forecolor="#5555DD" />

But this is not working . Any solutions .

Thanks in advance
Jophin
 
Since you have written that manually, are you sure you have put it the correct place? Why not use the visual design tools and let it generate the code for you. Select the TreeView in Design view, then go to Properties window and expand the SelectedNodeStyle property, here you can select/write the values.
 
Back
Top