Felipe Souza
asked on
Change font of Node
Hi experts,
i need change font only 1 node dinamic generated on my TreeView component in ASP.NET using VB.NET.
Please help me.
i need change font only 1 node dinamic generated on my TreeView component in ASP.NET using VB.NET.
Please help me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Its very easy for windows applications as shown below.
Dim n As New TreeNode
n.NodeFont = Me.Font
There is no direct way of doing this in ASP.NET.
You can change the selectednodestyle and make the node selected programmatically to apply that style on it. To select a node:
treeview1.nodes(1).selecte d=True
or
treeview1.nodes(1).select( )
Dim n As New TreeNode
n.NodeFont = Me.Font
There is no direct way of doing this in ASP.NET.
You can change the selectednodestyle and make the node selected programmatically to apply that style on it. To select a node:
treeview1.nodes(1).selecte
or
treeview1.nodes(1).select(
then change it to <font color="red">Test</font>