?
Solved

Storing Data from a Tree View Control

Posted on 2007-03-23
3
Medium Priority
?
194 Views
Last Modified: 2010-04-16
Hi All,
I have a treeview control.  I want to find out which (if any) nodes are checked.  I then want to store this information.  In this control, if the root node is checked, then I don't need to traverse the tree.  If however the root node is not selected, I do have a recursive function to check each of the child nodes already.

I need to know how to store the information in some kind of array or collection, be able to add to it, and eventually list its contents.

Thanks in advance!
0
Comment
Question by:ericlockshine
[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
3 Comments
 
LVL 5

Accepted Solution

by:
kosturdur earned 500 total points
ID: 18781446
If I were you I could store them in an xml(file) but you could also store them in an object oriented table.
0
 
LVL 5

Expert Comment

by:kosturdur
ID: 18781581
ericlockshine,
you can download c# samples from;
download.microsoft.com/download/6/4/7/6474467e-b2b7-40ea-a478-1d3296e78adf/CSharp.msi
there is 101 cs and 101 vb samples in it and find;
Framework - How-To Work with XML
sample for your XML.
Koturdur
0
 

Author Comment

by:ericlockshine
ID: 18781953
Thanks for the Idea.  I think I will store them in a local table since I already have a datasource open.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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