Solved

How would I go about cycling thorugh the root nodes in a treeview using c#

Posted on 2007-03-21
2
254 Views
Last Modified: 2010-05-18
How would I go about cycling thorugh the root nodes in a treeview using c#

I have a three tiered treeview and I need to cycle through all the nodes, check for checked nodes and pas the value of those nodes into variables. I know how to cycle through the child nodes I am uncertain how to cycle through the root nodes of the treeview.

0
Comment
Question by:Prysson
2 Comments
 
LVL 13

Accepted Solution

by:
Webstorm earned 500 total points
ID: 18763731
Hi Prysson,

You can use the treeView.Nodes collection
0
 

Author Comment

by:Prysson
ID: 18764056
That is what I was looking for. Thanks

        foreach (TreeNode aNode in TreeView1.Nodes)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question