Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Asp.Net tree view control font problem

5 views
Skip to first unread message

Santosh

unread,
Jul 24, 2006, 1:53:30 AM7/24/06
to
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 .

Santosh

unread,
Jul 25, 2006, 1:09:46 AM7/25/06
to
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>

Alan Silver

unread,
Jul 30, 2006, 12:36:42 PM7/30/06
to
In article <1153720410.4...@m73g2000cwd.googlegroups.com>,
Santosh <Santoshm...@yahoo.com> writes

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

--
Alan Silver
(anything added below this line is nothing to do with me)

Santosh

unread,
Aug 3, 2006, 12:38:17 AM8/3/06
to
I have also tried by applying CSS class but it is not working.

Patrick.O.Ige

unread,
Aug 3, 2006, 7:31:39 AM8/3/06
to
Which Treeview control are u using?
which version 1.1 or 2.0?
PAtrick

"Santosh" <Santoshm...@yahoo.com> wrote in message
news:1154579897.7...@s13g2000cwa.googlegroups.com...

Santosh

unread,
Aug 5, 2006, 3:16:03 AM8/5/06
to
i have downloaded MS IE Treeview control 1.1
0 new messages