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
225
UltraTree how to end Cell Edit mode on <Enter> key press
posted

I was wandering how to end Cell Edit mode when user press <Enter> key in UltraTree.

I trigger the cell editing using the following statements:

 

node.BringCellIntoView(column);

node.ActivateCell(column);

node.BeginCellEdit(column);

Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    TreeKeyActionMapping keyMapping =
        new TreeKeyActionMapping(
        Keys.Enter,
        UltraTreeAction.ExitEditModeOnCellSaveChanges,
        0,
        UltraTreeState.CellInEditMode,
        SpecialKeys.All,
        0);

    this.ultraTree1.KeyActionMappings.Add( keyMapping );

Children
No Data