I'm trying to filter the nodes in my tree by evaluating a condition on each one and setting its Visible property to false if it doesn't match. However, when I try to hide the (single) selected node, I get the error message "The ActiveNode can only be set to a node that belongs to this control."
Since I can't not have an ActiveNode, how can I make this work?
Thanks, Aaron
I was not able to reproduce the problem you describe here with a simple test; I set the Visible property to false for the only member of the SelectedNodes collection, and did not get the error you cited here. If possible please attach a sample project demonstrating the problem here and we will investigate further.
Seems to be a bit more complicated than I originally stated it. I don't have a simple reproducible case yet, but it seems to have to do with hiding a bunch of nodes, rebinding the tree, then hiding nodes again. It may have something to do with what happens to ActiveNode when I rebind the tree?