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
135
Navigation in ultragrid using up,down keys when cell is in editmode.
posted

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)

UltraGrid1.PerformAction(UltraGridAction.EnterEditMode)

e.SuppressKeyPress = True

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