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)
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.
Hi Sutha,
I'm afraid I do not understand what you are asking.
i need sample code for this. Even i'm facing same problem. like if i click 2nd row then only loading data 1 st row value. But how to manage this.
Plz any one help me
Thanks
sutha
This is probably what you need:
HOWTO:UltraWinGrid Cursor Movement like Excel
Hello,
I don't understand your answers. I don't know where to put this part of VB code.My goal is to press key down, up, left or right and move the cursor on grid.
Can yoyu help me ?
Laurent
If you want to get rid of the focus rect: HOWTO:How can I turn off the Focus Rectangle on an Infragistics Win Control?