Hi,
I have a requirement for the left and right arrow keys to 'tab' left and right between cells in an Ultragrid. The code I have does not seem to be working!
All that happens with this code is that none of the arrow keys now work. :-)
METHOD PUBLIC VOID ProcessArrowKeys( INPUT lvcKeyStroke AS CHARACTER,
INPUT sender AS System.Object,
INPUT e AS System.Windows.Forms.KeyEventArgs ):
CASE lvcKeyStroke:
WHEN "RIGHT" THEN
DO:
GetReferenceToUltraGrid():PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:ExitEditMode,false,false).
GetReferenceToUltraGrid():PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:NextCellByTab,false,false).
e:Handled = TRUE.
GetReferenceToUltraGrid():PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:EnterEditMode,false,false).
END.
WHEN "LEFT" THEN
DO:
GetReferenceToUltraGrid():PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:ExitEditMode,false,false).
GetReferenceToUltraGrid():PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:PrevCellByTab,false,false).
e:Handled = TRUE.
GetReferenceToUltraGrid():PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction:EnterEditMode,false,false).
END.
END CASE.
END METHOD.
Many thanks,
Mark.