RealGrid2 API
Interface
CellIndex

CellIndex

Cell location information model

Signature:

export interface CellIndex 

Remarks

[onCurrentChanging](/refs/Class/GridB ase#oncurrentchanging) etc. It is mainly used in various callbacks and cell location related methods of GridBase.

You only need to use the information you need.

Example

gridView.setCurrent({ itemIndex: 1, column: 'By administrative district' });

Properties

PropertyTypeDescription
cellTypeGridCellTypeType of focused cell
columnstring | GridColumncolumn name
dataRownumberUnique row number
fieldIndexnumberField order
fieldNamestringfield name
itemIndexnumberOrder on the grid
subTypeGridCellTypeSubtype of the focused cell
summaryIndexnumberIndex of the summary if the focused cell is footer/headerSummary

Properties desc

cellType

Type of focused cell

Type - GridCellType


column

column name

Type - string | GridColumn


dataRow

Unique row number

Type - number


fieldIndex

field order

Type - number


fieldName

field name

Type - string


itemIndex

Order on the grid

Type - number


subType

Subtype of the focused cell

Type - GridCellType


summaryIndex

Index of the summary when the focused cell is footer/headerSummary

Type - number