On 09/11/2006 in message
<66**********************************@microsoft.co mToco wrote:
>I have user selecting a branch on a treeview. Is it possible to gather the
values of all child nodes of the selected node, and put the values into an
arraylist? If you have any examples I would appreciate it.
Something like this will pick up the first level nodes, if you want their
children it would need to be recursive.
ArrayList al = new ArrayList();
TreeNode tnSelected = tv.SelectedNode;
foreach(TreeNode tNode in tnSelected.Nodes)
al.Add(tNode);
--
Jeff Gaines