Asp.Net tree view control font problem

S

Santosh

Asp.Net tree view control font problem

Dear all i am downloading MS tree view control . i want to change the
font size and font name of the tree view control i am wrtitting code
for it like

if (!Page.IsPostBack)
{
treeview1.FontBold = true;
treeview1.Font.Name = "DVB-TTSurekh";
treeview1.FontSize = Font.FontUnit(14);
}

i have also tried
<iewc:treeview id="TreeView1" runat="server" SelectExpands="True"
Height="600px" ShowLines="False"
OnSelectedIndexChange="TreeViewSelectionChange" AutoPostBack="True"
DefaultStyle=FontFamily:DVB-TTSurekh; Font-Weight: bold;
color:Yellow></iewc:treeview></P>


but the code is not working can any one tell me what is the problem
with in it . how i can change the font size and font name of treeview
control .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top