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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:31:23+00:00 2026-05-18T04:31:23+00:00

I have a treeview that displays certain information. If specific information needs to be

  • 0

I have a treeview that displays certain information. If specific information needs to be flagged, the node is coloured in red. The user can view a datagrid displaying all information pertaining to the red nodes, on a button click event.

Each datagridrow has a checkbox that can be used to toggle the flag on the treenode, which updates the sql database flag. What I also want to do is toggle the colour of the node (ie, the visual flag), back to black. I know how to do this using recursion, however the treeview may grow to hold 100’s or 1000’s of nodes, and I am worried about efficiency. Is there any other way to interact with a specific node, without having to recurse?

Thanks.

  • 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-18T04:31:24+00:00Added an answer on May 18, 2026 at 4:31 am

    In General , if your tree exhibits some property like Binary tree or BST , you can reduce the time but that is not the case with winforms treeview scenarios most of the time.

    so there is no other way to reach to the actual node but to recurse the tree.

    But you can make use of asynchronous programming to search on the secondary thread.

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

Sidebar

Related Questions

I have a wpf application that displays a 'Node' as such: <TreeView HorizontalAlignment=Stretch Name=treeView1
I have a JSF page that displays a RichFaces Treeview, from a TreeNodeImpl model
I have a TreeView that permits the user to select different items. The display
I have a tree view on the left side. Selecting a node displays relevant
I have a TreeView that the user navigates to select an item for display
I currently have a treeview that displays data using a hierarchicaldatatemplate and when the
I have a binded treeview that displays one of the properties (namely, the displayname)
I have a WinForm TreeView Control that displays the Parent Child relationship of CaseNotes(I
I have a WPF TreeView which displays my ViewModel. I have a button that
I have a forum page that displays a tree view of messages below the

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.