So I have a Treeview control.
When the user clicks a node, I want to check to see if that's the last child in the hierarchy (i.e. the node has a parent, but is not a parent of any other node).
Is there any easy way to do this? I still haven't wrapped my pea-brain around this recursive logic.
I've read some online articles about iterating through TV Controls, but I just want a simple check to see if the node is the last child in the hierarchy...
Any ideas?
Respectfully,
Gary
PS. A little additional wrench to throw in here is that my hierarchy isn't uniform. Meaning some hierarchical threads might only go 5 levels down, whereas some might go 7 levels deep, some 8...
When the user clicks a node, I want to check to see if that's the last child in the hierarchy (i.e. the node has a parent, but is not a parent of any other node).
Is there any easy way to do this? I still haven't wrapped my pea-brain around this recursive logic.
I've read some online articles about iterating through TV Controls, but I just want a simple check to see if the node is the last child in the hierarchy...
Any ideas?
Respectfully,
Gary
PS. A little additional wrench to throw in here is that my hierarchy isn't uniform. Meaning some hierarchical threads might only go 5 levels down, whereas some might go 7 levels deep, some 8...
Last edited: