locked
HOW TO ADD STYLE TO TREEVIEW RRS feed

  • Question

  • User35801979 posted
    hi there i want to add a Style to the tree view i tried using a style sheet which dose not work is there another way out plz reply
    Monday, November 22, 2004 9:31 AM

All replies

  • User-1039646841 posted

    If Not IsPostBack Then

    TreeView1.Nodes.Clear()

    Dim MeC As New MenuCollection

    Dim j As Integer

    MeC = Menu.FetchParrent(0)

    For j = 0 To MeC.Count - 1

    Dim xx As New TreeNode

    xx.Type = MeC.Item(j).MenuID

    xx.Text = "<font size='1' face='Verdana, Arial, Helvetica, sans-serif'><strong>" & MeC.Item(j).MenuName & "</strong></font>"

    Call AddnodeRecursive(MeC.Item(j).MenuID, xx)

    TreeView1.Nodes.Add(xx)

    Next

    End If

    Saturday, October 1, 2005 8:02 AM