?
Solved

Storing Data from a Tree View Control

Posted on 2007-03-23
3
Medium Priority
?
197 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month17 days, 2 hours left to enroll

862 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