Hi,
I am working in vb.net 2005 and using Infragistics 7.3. I am entering and displaying my data through ultra grid. I want to be able to navigate through my rows using up an down keys even when a cell is in edit mode.I tried out the following code on grid's keydown event
If e.KeyCode = Keys.Down Then
UltraGrid1.PerformAction(UltraGridAction.BelowCell)
UltraGrid1.PerformAction(UltraGridAction.EnterEditMode)
e.SuppressKeyPress = True
ElseIf e.KeyCode = Keys.Up Then
UltraGrid1.PerformAction(UltraGridAction.AboveCell)
End If
This always moves the focus to the next cell in the same row where as i want the focus to move to the same column cell in the row above or below the selected row.What could be the reason behind this behaviour as this code works fine when used with other grids.
Thanks in advance,
Prerna
My code was not working because i have set UseRowLayout to true for my grid .Any way presently my code is working as per requirement.
grdLineItems.PerformAction(UltraGridAction.EnterEditMode)
This sets the focus to the cell above(on key up) or below (on key down) the active cell and places it in edit mode.This was my intial requirment.
Thanks,
I'm not sure I understand what you are describing. But one thing I noticed is that you are not setting e.Handled to true. So the grid is going to end up processing the KeyDown in addition to the processing you are already doing.