Articles in this section

Is it possible to use HTML tags in ASP.NET WebForms TreeView?

 

Yes. You can use TreeViewNode.IsTextHtml property to use html tags in the Node Text.

C#

//Get the node instance

TreeViewNode node = TreeView1.FindNode("Node");

node.IsTextHtml = true;

node.Text = "<b style=''''color: blue''''>Font";

VB

''Get the node instance

Dim node As TreeViewNode = TreeView1.FindNode("Node")

node.IsTextHtml = True

node.Text = "<b style=''''color: blue''''>Font"


u
Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied