Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treeview font - how to change ??

Status
Not open for further replies.

Transcend

Programmer
Sep 29, 2002
858
AU
Hi everyone

I'm using the treeview from the ie webcontrols. I want to change the font on the treeview to match the rest of the site but nothing seems to work!

I found one post on this site that said to do something like

defaultstyle="font-family:Verdana,Helvetica; but i can't seem to get anything to work

please help!

Transcend
[gorgeous]
 
Ok nevermind i figured it out!

Had to put

DefaultStyle = font-family: verdana; font-size: 8pt in the treeview properties AND

node.DefaultStyle = New Microsoft.Web.UI.WebControls.CssCollection("font-family: verdana; font-size: 8pt")

for each node

Transcend
[gorgeous]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top