SpreadsheetControl.ActiveCell Property

Gets an active cell in the active worksheet.

Namespace: DevExpress.Xpf.Spreadsheet

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


public Cell ActiveCell { get; }

Property Value

Type Description

A Cell object.


The SpreadsheetControl.ActiveCell property enables you to obtain an active cell, i.e., the cell that is in focus. It is the cell with which the user interacts.

The SpreadsheetControl.SelectedCell property returns the CellRange object that is the active cell of the current worksheet. However, unlike the SpreadsheetControl.ActiveCell property, it enables you to set the active cell by specifying the CellRange. The top left cell of the specified range becomes the selected cell.

The SpreadsheetControl.Selection property provides access to the continuous selected range that contains an active cell. If an end-user selects multiple discrete ranges, only the range that contains an active cell is obtained by this property.

See Also