SpreadsheetSelectionBehaviorOptions.MoveActiveCellMode Property

Specifies the direction in which an active cell moves on pressing the ENTER key. This is a dependency property.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v21.2.dll


public MoveActiveCellModeOnEnterPress MoveActiveCellMode { get; set; }

Property Value

Type Description

A MoveActiveCellModeOnEnterPress enumeration value.

Property Paths

You can access this nested property as listed below:

Object Type Path to MoveActiveCellMode


By default, when the ENTER key is pressed, the SpreadsheetControl moves an active cell one cell down. Use the MoveActiveCellMode property to set another direction to move an active cell (for example, Up, Right or Left). To keep an active cell on pressing ENTER, set the MoveActiveCellMode property to MoveActiveCellModeOnEnterPress.None.

The SHIFT+ENTER key combination moves an active cell in the opposite direction of what the MoveActiveCellMode property specifies.

TAB and SHIFT+TAB moves an active cell one cell to the right and to the left respectively, and this behavior is not customized.


If a cell range or multiple ranges are selected in a worksheet, ENTER, SHIFT+ENTER, TAB and SHIFT+TAB move an active cell within this selection only.

See Also