# DataGridRowInfo (@salmonui/data-grid)

> The DataGridRowInfo interface of @salmonui/data-grid: Row and optional cell resolved from a row id or a DOM element.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridRowInfo

```ts
import type { DataGridRowInfo } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridRowInfo<Row> {
    readonly rowId: RowId;
    readonly row: Row | null;
    readonly rowIndex: number;
    readonly field: string | null;
    readonly column: DataGridColumnInfo<Row> | null;
    readonly element: HTMLElement | null;
    readonly cellElement: HTMLElement | null;
}
```

Row and optional cell resolved from a row id or a DOM element.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `rowIndex` | `readonly rowIndex: number;` |  | Position in the visible row model; -1 when the row is filtered out. |
| `field` | `readonly field: string \| null;` |  | Column of the cell the element is in; null for a row id or a row-level element. |
| `column` | `readonly column: DataGridColumnInfo<Row> \| null;` |  |  |
| `element` | `readonly element: HTMLElement \| null;` |  | The row element; null outside the rendered window. |
| `cellElement` | `readonly cellElement: HTMLElement \| null;` |  |  |
