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?
the second iamge for navigation within cells will be like
my aim is when i press enter it should go to the row and when i press tab it shold go to cells of that row and press tab it should go to the next cell in the same row so i am using
If Windows.Forms.Keys.Tab Then UltraGrid1.KeyActionMappings.Add(New Infragistics.Win.UltraWinGrid.GridKeyActionMapping(Windows.Forms.Keys.Tab, Infragistics.Win.UltraWinGrid.UltraGridAction.NextCell, Nothing, Nothing, Infragistics.Win.SpecialKeys.All, Nothing)) UltraGrid1.DisplayLayout.TabNavigation = TabNavigation.NextCellElseIf Windows.Forms.Keys.Enter Then UltraGrid1.KeyActionMappings.Add(New Infragistics.Win.UltraWinGrid.GridKeyActionMapping(Windows.Forms.Keys.Enter, Infragistics.Win.UltraWinGrid.UltraGridAction.NextRow, Nothing, Nothing, Infragistics.Win.SpecialKeys.All, Nothing))End If
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 );