giving color to nodes in tree view

Last post 10-13-2008 11:46 PM by forexbob. 3 replies.

Sort Posts:

  • giving color to nodes in tree view

    06-20-2008, 5:11 AM
    • Member
      2 point Member
    • atkrishnan
    • Member since 06-20-2008, 9:02 AM
    • Posts 4

    Hi friends,

    I am using a treeview control

    i want to give different color to different  nodes

     

           

    kindly help

     

    regards

    T.Krishna kumar

    Filed under:
  • Re: giving color to nodes in tree view

    06-22-2008, 6:55 AM
    • Contributor
      2,158 point Contributor
    • Talib_dotnet
    • Member since 01-31-2008, 11:02 AM
    • Riyadh , Saudi Arabia
    • Posts 456

    Hi,

    Go  to  TreeView properties,  Click  LeafNodeStyle  and in  that  select  the  Backcolor  or Forecolor  as  per your  requirement..

    Hope  this  helps...

    Click "Mark As Answer" if it helped you.


    TALIB ALI KHAN
    Software Engineer / Consultant
    MCTS


    Welcome to TALIB's World | My BLOG | More Asp.net Articles



  • Re: giving color to nodes in tree view

    06-23-2008, 2:22 AM
    • Member
      2 point Member
    • atkrishnan
    • Member since 06-20-2008, 9:02 AM
    • Posts 4

    hi talib thanks for ur reply.

     LeafNodeStyle will give color to only leaf nodes

    i got the answer

     we have to give colors on levelstyle

     

    <LevelStyles>

    <asp:TreeNodeStyle Forecolor="#009900" Font-Underline="False" />

    <asp:TreeNodeStyle ForeColor="#ff0066" Font-Underline="False" />

    <asp:TreeNodeStyle ForeColor="#003399" Font-Underline="False" />

    </LevelStyles>

     

     

     

  • Re: giving color to nodes in tree view

    10-13-2008, 11:46 PM
    • Member
      9 point Member
    • forexbob
    • Member since 10-10-2008, 12:39 PM
    • Posts 12

     Any idea as to how to do this in a skin file for a theme?

    Thanks

    Bob

Page 1 of 1 (4 items)