I've got this scenario:
Tree.SelectedNodes contains aTreeNode.
var
parentNodesCollection = aTreeNode.ParentNodesCollection;
parentNodesCollection.Remove(aTreeNode);
Tree.SelectedNodes *still* contains aTreeNode after the remove.
I've tried:
Tree.SelectedNodes.Clear();
Tree.ActiveNode.Selected = true
and neither have worked. The tree shows the next node corrected selected and active, but Tree.SelectedNodes still contains the old value(s) until I click on another node. Is this a bug or am I doing something wrong? Thanks.
What version of the controls are you using?
This sounds like a bug that was fixed years ago.