B
Brad Pears
I have a treeview where when the parent node is checked/unchecked, I want
all children nodes of that parent to be checked/unchecked as well...
I am having problems figuring out how to "check/uncheck" the children
nodes... I was hoping I could use
"TreeView.Nodes(Node.Index).Children.Checked = True"...
but no luck there!. This means that I suspect I must have to loop through
the children to check/uncheck each one individually. I can get the count of
the associated children by using "ListView.Nodes(Node.Index).Children" as
the total number of children I will need to check/uncheck.
However, how do I move through the children? I can "check" the first one by
issuing...
"Treeview.Nodes(Node.Index).Child.Checked = true"
but how do I then navigate through the rest of the children nodes???
I tried ...
"Treeview.Nodes(Node.Index).Child.Next" but that did not work...
Could someone forward some code that outlines how one might do this?
Thanks,
Brad
all children nodes of that parent to be checked/unchecked as well...
I am having problems figuring out how to "check/uncheck" the children
nodes... I was hoping I could use
"TreeView.Nodes(Node.Index).Children.Checked = True"...
but no luck there!. This means that I suspect I must have to loop through
the children to check/uncheck each one individually. I can get the count of
the associated children by using "ListView.Nodes(Node.Index).Children" as
the total number of children I will need to check/uncheck.
However, how do I move through the children? I can "check" the first one by
issuing...
"Treeview.Nodes(Node.Index).Child.Checked = true"
but how do I then navigate through the rest of the children nodes???
I tried ...
"Treeview.Nodes(Node.Index).Child.Next" but that did not work...
Could someone forward some code that outlines how one might do this?
Thanks,
Brad