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
20
UltraTree with CheckBox select on check or uncheck
posted

i have a tree with check box.when i am checking the node or un cheking the node, i need to make the node as selected node.i tried handling the Mouse_Down event,Before_Check and After_Check event of the tree view. now the selection moves but, the check box doesn't get checked or unchecked in the first click. can someone help.

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    Without handling MouseDown or BeforeCheck, I handled AfterCheck and this seems to have worked:

    private void ultraTree1_AfterCheck(object sender, NodeEventArgs e)
    {
        e.TreeNode.Selected = true;
    }

Children
No Data