Solved

Storing Data from a Tree View Control

Posted on 2007-03-23
3
182 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 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the Idea.  I think I will store them in a local table since I already have a datasource open.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

11 Experts available now in Live!

Get 1:1 Help Now