Save ArrayList to Tree Nodes
I want to use a TreeView to show items the user selects in several different categories, however, I can only get it to work for adding root nodes (not child).
For example, I want something like:
STATE
- 1st State
- CITIES
- 1st City
- 2nd City
- 3rd City
- 2nd State
- CITIES
- 1st City
- 2nd city
- ZIPs
- 1st Zip
- 2nd Zip
COUNTRY
etc... where the capitalized entries are hard coded and the users choices dynamically fill the child nodes.
This is the code I have in my method:
TreeView tv = new TreeView;
tv.Nodes.Add((GeoArray).ToString());
This only shows "Systems.Collections.ArrayList" in new root nodes for the number of items I selected in the listbox.
I've looked in forums and books but there is not a lot of info on TreeViews.
Any help is appreciated.

sjonesRank #7,001 · 251 reputationPosted May 6, 2004, 9:06 AM EDT
rulec444106 reputationPosted May 6, 2004, 10:02 AM EDT
sjonesRank #7,001 · 251 reputationPosted May 7, 2004, 4:53 AM EDT
rulec444106 reputationPosted May 11, 2004, 7:26 AM EDT
sjonesRank #7,001 · 251 reputationPosted May 11, 2004, 7:44 AM EDT
rulec444106 reputationPosted May 11, 2004, 10:14 AM EDT
sjonesRank #7,001 · 251 reputationPosted May 11, 2004, 10:25 AM EDT
rulec444106 reputationPosted May 11, 2004, 2:49 PM EDT
rulec444106 reputationPosted May 14, 2004, 1:38 PM EDT
sjonesRank #7,001 · 251 reputationPosted May 15, 2004, 5:36 AM EDT
sjonesRank #7,001 · 251 reputationPosted May 15, 2004, 6:31 AM EDT
rulec444106 reputationPosted May 17, 2004, 11:44 AM EDT
sjonesRank #7,001 · 251 reputationPosted May 17, 2004, 12:08 PM EDT
rulec444106 reputationPosted May 17, 2004, 1:05 PM EDT
sjonesRank #7,001 · 251 reputationPosted May 17, 2004, 9:41 PM EDT
rulec444106 reputationPosted May 18, 2004, 10:11 AM EDT
rulec444106 reputationPosted Jun 23, 2004, 12:52 PM EDT
rulec444106 reputationPosted Jun 23, 2004, 3:03 PM EDT
sjonesRank #7,001 · 251 reputationPosted Jun 24, 2004, 8:15 AM EDT
rulec444106 reputationPosted Jun 24, 2004, 9:04 AM EDT
rulec444106 reputationPosted Jul 4, 2004, 7:02 PM EDT