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 8491133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:19:34+00:00 2026-06-10T22:19:34+00:00

I am having issues figuring out what this issue is. I have googled around

  • 0

I am having issues figuring out what this issue is. I have googled around and have not found many solutions to this issue. The only “solution” I found was a hack to expand then collapse the last node.

this.Nodes[this.Nodes.Count - 1].Expand();
this.Nodes[this.Nodes.Count - 1].Collapse();

As you can see from this screen shot the last node is partially cut off and the only way to expose it is to expand the node which will cause the TreeView to re-render itself correctly.

enter image description here

I am pragmatically adding nodes to the TreeView. I do not know if this affects the outcome, but I have extended the TreeView to my own class so I can add a few properties and methods to it.

public class MyTreeView : TreeView
{

public void BuildTree()
{
    this.Nodes.Clear();
    foreach (TestSetFolder folder in Folders)
    {
         MyTreeNode node = new MyTreeNode();
         node.Name = folder.Name;
         node.Text = folder.Name;
         node.Tag = folder;
         node.FolderID = folder.NodeID;
         node.IsPopulated = false;

         this.Nodes.Add(node);
     }
 }
 }

This is how I am adding the nodes to the list. Does anyone have a clean solution to this issue?

  • 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-10T22:19:36+00:00Added an answer on June 10, 2026 at 10:19 pm

    Use treeView.BeginUpdate() and treeView.EndUpdate() before and after any visual changes.

    SuspendLayout() and ResumeLayout() also can be useful!

    If you want UI update, do not add all nodes in one go! add one by one, sandwiched between begin and endupdate calls.

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

Sidebar

Related Questions

I am having some problems figuring out this issue. I have a server that
I'm having trouble figuring out how to solve this issue. I have a file
just having a little issue figuring this jquery problem out. I have a table
I am having trouble figuring out where my issue with this code is. My
Im having issues getting this to work, maybe its not even possible? I have
I am having issues figuring out if this is possible. Any pointers would be
I'm having some trouble figuring this out. I have the following CSV string hello
I've been having this issue and figuring out how to fix it for a
I'm very new to Tomcat and I'm having some issues figuring out how to
I'm having some trouble figuring this out. I want to make it so I

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.