Solved

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

Posted on 2007-03-21
2
255 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.

840 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