Recursion...
private void SetMyChildren(TreeNode parentNode,bool isChecked)
{
parentNode.Checked = isChecked;
for(int i=0;i<parentNode.Nodes.Count;i++)
{
SetMyChildren(parentNode.Nodes[i],isChecked);
}
}
--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.eggheadcafe.com/forums/merit.asp
"Ryo" <Ry*@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
Hello !!!
I have a treeview with checkbox to select element.
The problem is that i can't found how to automatically select the
childnodes
the checked node.
Someone know how to do that ?
Thanks.