The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

SpreadsheetSelectionOptions.MoveActiveCellMode Property

Specifies the direction in which an active cell moves on an ENTER key press.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

[DefaultValue(MoveActiveCellModeOnEnterPress.Down)]
public MoveActiveCellModeOnEnterPress MoveActiveCellMode { get; set; }
<DefaultValue(MoveActiveCellModeOnEnterPress.Down)>
Public Property MoveActiveCellMode As MoveActiveCellModeOnEnterPress
[DefaultValue(MoveActiveCellModeOnEnterPress.Down)]
public MoveActiveCellModeOnEnterPress MoveActiveCellMode { get; set; }
<DefaultValue(MoveActiveCellModeOnEnterPress.Down)>
Public Property MoveActiveCellMode As MoveActiveCellModeOnEnterPress
[DefaultValue(MoveActiveCellModeOnEnterPress.Down)]
public MoveActiveCellModeOnEnterPress MoveActiveCellMode { get; set; }
<DefaultValue(MoveActiveCellModeOnEnterPress.Down)>
Public Property MoveActiveCellMode As MoveActiveCellModeOnEnterPress

Property Value

Type Default Description
MoveActiveCellModeOnEnterPress

Down

A MoveActiveCellModeOnEnterPress enumeration value.

Property Value

Type Default Description
MoveActiveCellModeOnEnterPress

Down

A MoveActiveCellModeOnEnterPress enumeration value.

Property Value

Type Default Description
MoveActiveCellModeOnEnterPress

Down

A MoveActiveCellModeOnEnterPress enumeration value.

Remarks

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 an ENTER press, set the MoveActiveCellMode property to the MoveActiveCellModeOnEnterPress.None value.

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.

Note

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