Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
635
SelectedNodes nodes collection not correct after node deletion
posted

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.

Parents Reply Children
No Data