Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

DataGrid.setAllowArrows

Sets a boolean value indicating whether the arrow keys can be used to navigate the grid.

Syntax

public void setAllowArrows( boolean allowArrows )

Parameters

allowArrows

Set to true for the arrow keys to move the current cell focus within the grid; set to false for the arrow keys to move focus between the controls on the form. The default value of the allowArrows property is true.

Remarks

If both the allowArrows and wrapCellPointer properties are true, the current cell focus can wrap around rows and columns. For example, if the current cell is the last cell in a row, pressing the right arrow key will make the first cell in the next row the current cell.

You can further define keyboard navigation in the grid by calling setEnterAction and setTabAction.

See Also   getAllowArrows