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
1330
Move to next cell when Enter key is pressed
posted

Is there a way to move either to the next cell on the right, or to the cell below when the enter key is pressed on the Ultra Win Grid?

 

Parents
  • 69832
    Verified Answer
    Offline posted

    You could add a key mapping for the 'NextCellByTab' action (which is what the tab key does by default), and specify the Enter key as its keyCode:

    GridKeyActionMapping mapping = new GridKeyActionMapping(Keys.Enter, UltraGridAction.NextCellByTab, (UltraGridState)0, UltraGridState.InEdit, SpecialKeys.All, (SpecialKeys)0 );
    this.ultraGrid.KeyActionMappings.Add( mapping );

Reply Children
No Data