Cien S

Cien S

  • NA
  • 19
  • 0

Change the color of the Selected Node

Jun 3 2010 11:56 AM
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)