Asp.Net tree view control font problem

S

Santosh

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 ity like


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

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 .
 
A

Alan Silver

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 ity like


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

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 .

Never tried it that way, but if you give the control a cssClass
property, and use CSS to set the font info, it works fine.

HTH
 
P

Patrick.O.Ige

Which Treeview control are u using?
which version 1.1 or 2.0?
PAtrick

Santosh said:
I have also tried by applying CSS class but it is not working.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top