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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:26:37+00:00 2026-05-29T13:26:37+00:00

Having a treeview control on a form which will be used to visually represent

  • 0

Having a treeview control on a form which will be used to visually represent both folders and text files that the user will create, rename, and delete in an arbitrary hierarchy as they see fit, how should one go about managing the relationships and user interaction that will exist between the individual nodes in the treeview and the underlying folders and files?

Edit \ Update:

As an example of user interaction suppose I select an existing node in the treeview and via a right-click context menu I rename that node, how do I go about building a string representing the path to that particular node that I could pass to some sort of method which would would carry out the associated action on the underlying folder.

  • 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-05-29T13:26:37+00:00Added an answer on May 29, 2026 at 1:26 pm

    This will not be a comprehensive answer, but one important practice is to lazy-populate collapsed nodes. That is, only enumerate the next level down when a user explicitly requests expansion of the node.

    This is why we often see a “plus sign” on a directory node, click to expand, and then find it to be empty.

    At a higher level, the Composite Pattern is directly relevant — it is the canonical approach to implementing tree structures. Learn it, use it, love it.

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

Sidebar

Related Questions

Hi The problem am having is that I have multiple TreeView control and each
I'm making a Windows Form project that will search for files in the specified
Having a problem getting a TreeView control to display node images. The code below
I'm having about 200 icons ,which I wanted to display in a treeview on
I having an issue with the ASP.NET Treeview control. I create the treeview just
Is it possible to configure the TreeView control in the Silverlight tookit such that
I am accustomed to winform TreeView having a Sorted property which automatically manages nodes
I'm having a windows form with a tree view control. This tree view has
I have a TreeView control on my form, and I'm recursively going through the
I want to use a hierarchical TreeView which I will populate programmatically. My XAML

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.