Hi all, im using the following code to check to see which tree nodes have been checked:
If the "Basic Details" node has been checked, I would like to check to see if all the child nodes of the "Basic Details" node have been checked. However, i dont actually know the text property of the child nodes. is there any way of me checking all the child node of "Basic Details" without knowing their text value?
if (TreeView1.CheckedNodes.Count > 0)
// Iterate through the CheckedNodes collection and display the selected nodes.
foreach (TreeNode node in TreeView1.CheckedNodes)
if (node.Text == "Basic Details")
//CHECK ALL CHILD NODES