Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-03-21
2
Medium Priority
?
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Webstorm earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

609 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