Mega Code Archive

 
Categories / ASP.Net / Asp Control
 

Expanding nodes programmatically using the Expanded property

protected void TreeView1_DataBound(object sender, System.EventArgs e) {    TreeView1.FindNode("Home").Expanded = true;    TreeView1.FindNode("Home//Finance").Expanded = true;    TreeView1.FindNode("Home//Finance//Markets").Expanded = true; }