Solved

Storing Data from a Tree View Control

Posted on 2007-03-23
3
190 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 125 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

Suggested Solutions

Title # Comments Views Activity
need to convert function to c# 5 45
Problem to Office 1 45
C# Windows app updating JSON file error. 9 39
.Net remove carriage returns, line feeds and tabbs 5 18
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.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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