Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7927117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:09:05+00:00 2026-06-03T19:09:05+00:00

I have an ASP.NET TreeView and need set ShowLine true when I define its

  • 0

I have an ASP.NET TreeView and need set ShowLine “true” when I define its style.
However, the treeview’s lines will be cut-off.
I tried this tutorial, but it didn’t help.

.tree
{
      font-size: 40px;
      height: 40px !important;
 }

<asp:TreeView ID="TreeView1" runat="server" ShowLines="True" CssClass="tree">
    <Nodes>
            <asp:TreeNode Text="test1" Value="1">
                <asp:TreeNode Text="test1.1" Value="11"></asp:TreeNode>
            </asp:TreeNode>
            <asp:TreeNode Text="test2" Value="2">
                <asp:TreeNode Text="test2.1" Value="21"></asp:TreeNode>
            </asp:TreeNode>
        </Nodes>
    </asp:TreeView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:09:07+00:00Added an answer on June 3, 2026 at 7:09 pm

    Did you try the styles mentioned in the example itself? you are missing td div in the style

    .tree td div {
       height: 20px !important
    }
    

    enter image description here

    That will work. Note that setting 40px is not going to work directly as it seems the vertical line image used within the div is of 20px height; hence you will need to implement your own ways if you want to change that. This would also affect the expand/collapse icon on the tree nodes.

    .tree td div {
           height: 40px !important
        }
    

    enter image description here

    EDIT

    The default images used are 20 x 20 pixels in size. to set your own set of images, you need to set LineImagesFolder property of the tree view (by doing this you will be providing your own set of images). Have a look at this MSDN Link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net treeview control that I need to be able to set
I have created a TreeView in asp.net page and also set the height and
I have a ASP.Net TreeView control that I am binding to an XML data
I have a requirement to create a multi level treeview in ASP.Net (with VB)
I have asp.net mvc website and in some pages i need a paging feature,
I have listed data for ASP.net control TreeView. I wanted to disable a particular
I am trying to create a treeview dynamically using c# and asp.net. I have
I have an ASP.NET MVC application that has a jQuery Treeview and a jQuery
I do have a asp:TreeView control on my Asp.net page and when I render
I have a question regarding the ASP.NET 3.5 Treeview and Treenodes. I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.