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
145
UltraGrid navigation with arrow keys
posted

Hi,

I want to be able to navigate through my rows using only up and down keys (without CTRL key pressed). For instance, if I press KeyDown the selected row in UltraGrid is “selected again”. And it’s necessary to press KeyDown again to select the next row.

If I press CTRL + KeyDown, it’s work perfectly. But I don’t want use CTRL key.

 

Like another Infragistics user has posted in the forum, I tried the following code on UltraGrid KeyDown event:

 

If e.KeyCode = Keys.Down Then

UltraGrid1.PerformAction(UltraGridAction.BelowCell)

e.SuppressKeyPress = True

ElseIf e.KeyCode = Keys.Up Then

UltraGrid1.PerformAction(UltraGridAction.AboveCell)

e.SuppressKeyPress = True

End If

 

 

But this event isn’t fired on first time that I press KeyDown (or KeyUp). If I change “Keys.Down” and “Keys.Up” for “Keys.NumPad2” and “Keys.NumPad8”, for example, it will work.