Solved

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

Posted on 2007-03-21
2
252 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
Comment Utility
Hi Prysson,

You can use the treeView.Nodes collection
0
 

Author Comment

by:Prysson
Comment Utility
That is what I was looking for. Thanks

        foreach (TreeNode aNode in TreeView1.Nodes)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now