Dear all,
I have a UltraTree (v16.1) with a unbound Checkboxcolumn. All columns except the checkbox column are readonly, and the tree is drawn by code (no databinding).I'd like to use the space bar to tick/untick the checkbox of the active node. My current settings require hitting F2, then space to check or uncheck. How can I avoid the additional F2?
Thanks for any hint.
Kind regards
Martin
Hello Divya,
this works like a charm. :) Thank you very much. Case closed.
Hello MS,
Maybe because you did not set the ActiveCell first, hook UltraTree1_KeyDown event and for the Keys.Space makes the node active.
I created a small sample demonstrating this behavior .Click the 1st cell and check/uncheck the node using space.
Regards,Divya Jain
WindowsFormsApp11.zip
thanks for your help.
This property ist set already, and ticking works well using the mouse. But using only the keyboard, F2 is still required to check/uncheck the nodes.
Any further hints?
Best regards
Thank you for posting. By pressing F2 you are putting node into edit mode so basically, if you use CellClickAction property and set it to ‘EditCell’ then it will do the same thing . You can refer to this doc for more information.
this.ultraTree1.Override.CellClickAction = CellClickAction.EditCell; Sincerely,Divya Jain