lets name tree view control : trvwMultiUnit
then call this function : clearTrrVwChkBox()
private void clearTrrVwChkBox()
{
foreach(TreeNode tn in trvwMultiUnit.Nodes)
{
TreeNodeCollection cNodes = tn.ChildNodes;
foreach(TreeNode cNode in cNodes )
{
if(cNode.Checked)
{
cNode.Checked = false;
}
}
}
}
Showing posts with label C#.NET :: Clear treeview check boxes at runtime. Show all posts
Showing posts with label C#.NET :: Clear treeview check boxes at runtime. Show all posts
Friday, February 22, 2008
Subscribe to:
Posts (Atom)