Returns whether the row is expanded.
const RowExpanded = this.grid1.rowList.first.expanded;
The index of the row.
// get the index of the second selected row
let selectedRowIndex = this.grid.selectedRows[1].index;
The native DOM element representing the row. Could be null in certain environments.
// get the nativeElement of the second selected row
let selectedRowNativeElement = this.grid.selectedRows[1].nativeElement;
Get a reference to the grid that contains the selected row.
handleRowSelection(event) {
// the grid on which the rowSelected event was triggered
const grid = event.row.grid;
}
<igx-grid
[data]="data"
(rowSelected)="handleRowSelection($event)">
</igx-grid>
The data passed to the row component.