Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

DataGrid.setEnterAction

Sets a value indicating the behavior of the ENTER key within the grid.

Syntax

public void setEnterAction( int action )

Parameters

action

One of the constants defined by the EnterAction class. The default value of the enterAction property is EnterAction.NONE.

Exceptions

WFCInvalidEnumException thrown if action is not a valid action for the ENTER key.

Remarks

If the enterAction property is set to EnterAction.COLUMNNAVIGATION or EnterAction.ROWNAVIGATION, and the wrapCellPointer property is set to true, the current cell focus can wrap around rows or columns. For example, if the enterAction property is set to COLUMNNAVIGATION and the current cell focus is in the last column of the row, pressing the ENTER key will move the focus to the first column in the next row.

You can further define keyboard navigation in the grid by setting the allowArrows and tabAction properties.

See Also   getEnterAction