TreeView Root Node Style

Posted by ScG on Stack Overflow See other posts from Stack Overflow or by ScG
Published on 2010-03-27T14:22:17Z Indexed on 2010/03/27 14:53 UTC
Read the original article Hit count: 448

Filed under:
|

I have a tree view

<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" 
    ShowExpandCollapse="False">

</asp:TreeView>

As you can see, root node is hidden. However when the treenode gets rendered, there is a whitespace to the left of each leafnode. This is probably because the root node is hidden but is taking up space. How do i remove that white space.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about treeview