Represent the grid instance, the row belongs to
The index of the row within the grid
Gets if this represents add row UI
let isAddRow = row.addRowUI;
Gets the rendered cells in the row component.
Returns the child rows.
The data passed to the row component.
let selectedRowData = this.grid.selectedRows[0].data;
Returns if the row is in delete state.
Optional Indicates whether the current row is disabled
Gets whether the row is expanded.
let esExpanded = row.expanded;
Expands/collapses the row.
row.expanded = true;
Returns true if child rows exist. Always return false for IgxGridRow.
Returns if the row is currently in edit mode.
Gets the row key. A row in the grid is identified either by:
let rowKey = row.key;
Returns the parent row.
Gets whether the row is pinned.
let isPinned = row.pinned;
Sets whether the row is pinned.
Default value is false.
row.pinned = !row.pinned;
Gets whether the row is selected.
Default value is false.
row.selected = true;
Sets whether the row is selected.
Default value is false.
row.selected = !row.selected;
The ITreeGridRecord with metadata about the row in the context of the tree grid.
const rowParent = this.treeGrid.getRowByKey(1).treeRow.parent;
Gets the validation status and errors, if any.
let validation = row.validation;
let errors = validation.errors;
Returns the view index calculated per the grid page.
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();
Pins the specified row.
This method emits onRowPinning event.
// pin the selected row from the grid
this.grid.selectedRows[0].pin();
Unpins the specified row.
This method emits onRowPinning event.
// unpin the selected row from the grid
this.grid.selectedRows[0].unpin();
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);
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