I was wondering how I would go about placing a check in the checkboxes for each child node of a parent node in a TreeView control, if I was to check the parent node.

For example:

  • Parent 1
    • Child 1
    • Child 2
    • Child 3


If I was to check "Parent 1" how would I be able to make that event place a checkbox beside all of the child nodes of "Parent 1"? (Child1, 2, and 3.)