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
1483
Prevent ActiveNode change during multiselect
posted

Hello,

  Is there a way to prevent the active node in the tree from changing while the user is multiselecting(holding down control of shift key)? I would like the selected nodes to change but the active node should remain the same when the user is multiselecting.

Thanks,

Bill

Parents
No Data
Reply
  • 48586
    Suggested Answer
    posted

    Hello Bill,

     

    What you could do in your case is to handle AfterSelect event of UltraTree and to add there following code line:

    ultraTree1.ActiveNode = ultraTree1.SelectedNodes[0];

     

    now ActiveNode will be the first selected node. Please run the attached sample select a node, then press “Ctr” and select other node from the same node level.

     

    Please let me know if you have any further questions.

    WinTreeKeepActiveNode.zip
Children