TreeView: Checked Node => Selected Node
Posted on 2006-05-11
I have a TreeView control in an app that works just fine, so far.
I am presently adding a CheckBox to the control to permit the user to select one or many nodes for "processing".
Currently, I can determine which nodes are checked by simply walking the tree (top-to-bottom) and testing the ".Checked" property...after they are already selected (via a separate button click).
I want react to the actual NodeCheck event, but I am not able to determine the CurrentNode. "Checking" a node does not actually SELECT the node.
Is there a way to determine the CHECKED node without walking down the tree and testing the ".Checked" property?