Interface representing a row in the grid. It is essentially the blueprint to a row object. Contains definitions of properties and methods, relevant to a row

Inherited from: BaseRow

Represent the grid instance, the row belongs to

grid: GridType

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:502

Inherited from: BaseRow

The index of the row within the grid

index: number

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:503

Inherited from: BaseRow

Optional Indicates whether the current row is expanded. The value is true, if the row is expanded and false, if it is collapsed

expanded: boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:128, projects/igniteui-angular/grids/core/src/grid-public-row.ts:139

Inherited from: BaseRow

Optional Indicates whether the current row is pinned.

pinned: boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:102, projects/igniteui-angular/grids/core/src/grid-public-row.ts:113

Inherited from: BaseRow

Optional Indicates whether the current row is selected

selected: boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:150, projects/igniteui-angular/grids/core/src/grid-public-row.ts:161

Inherited from: BaseRow

Gets if this represents add row UI

let isAddRow = row.addRowUI;
get addRowUI(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:46

Returns boolean

Gets the rendered cells in the row component.

get cells(): CellType[]

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:531

Returns CellType[]

Inherited from: BaseRow

The data record that populates the row.

let rowData = row.data;
get data(): any

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:70

Returns any

Inherited from: BaseRow

Returns if the row is in delete state.

get deleted(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:173

Returns boolean

Inherited from: BaseRow

Gets whether the row is disabled. A disabled row represents a ghost placeholder created by row pinning.

get disabled(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:188

Returns boolean

Returns true if row islands exist.

get hasChildren(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:512

Returns boolean

Inherited from: BaseRow

Returns if the row is currently in edit mode.

get inEditMode(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:86

Returns boolean

Inherited from: BaseRow

Gets the row key. A row in the grid is identified either by:

  • primaryKey data value,
  • the whole rowData, if the primaryKey is omitted.
let rowKey = row.key;
get key(): any

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:33

Returns any

Inherited from: BaseRow

Gets the validation status and errors, if any.

let validation = row.validation;
let errors = validation.errors;
get validation(): IGridValidationState

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:58

Returns IGridValidationState

Returns the view index calculated per the grid page.

get viewIndex(): number

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:519

Returns number

Inherited from: BaseRow

Removes the specified row from the grid's data source. This method emits onRowDeleted event.

// delete the third selected row from the grid
this.grid.selectedRows[2].delete();
delete(): void

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:258

Returns void

Inherited from: BaseRow

Pins the specified row. This method emits onRowPinning event.

// pin the selected row from the grid
this.grid.selectedRows[0].pin();
pin(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:213

Returns boolean

Inherited from: BaseRow

Unpins the specified row. This method emits onRowPinning event.

// unpin the selected row from the grid
this.grid.selectedRows[0].unpin();
unpin(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:226

Returns boolean

Inherited from: BaseRow

Updates the specified row object and the data source record with the passed value.

// update the second selected row's value
let newValue = "Apple";
this.grid.selectedRows[1].update(newValue);
update(value: any): void

Defined in projects/igniteui-angular/grids/core/src/grid-public-row.ts:239

Parameters

  • value: any

Returns void