1
Answer

Change the color of the Selected Node

Cien S

Cien S

14y
2.6k
1
Hi,

I want to change the forecolor of the selectednode. I am using following code::

protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
 {

TreeView1.SelectedNodeStyle.ForeColor = Color.Maroon;

}

But i have a issue suppose i have a tree of State with nodes CA,WA,AK,AZ. When i select CA its becomes Marron and when i  select WA its becomes Marron but CA becomes normal. I want all(which are selected) indivually are Marron.


Please help me

Thanks

Pankaj

Answers (1)