# DataGridRowContext (@salmonui/data-grid)

> The DataGridRowContext interface of @salmonui/data-grid.

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

```ts
import type { DataGridRowContext } 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 DataGridRowContext<Row> {
    row: Row;
    rowId: RowId;
    rowIndex: number;
    defaultRow: ReactElement;
    rowProps: DataGridRowElementProps;
    cells: ReactNode;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `row: Row;` |  |  |
| `rowId` | `rowId: RowId;` |  |  |
| `rowIndex` | `rowIndex: number;` |  |  |
| `defaultRow` | `defaultRow: ReactElement;` |  | The default row element; return it, wrap its cells, or render `rowProps` + `cells` yourself. |
| `rowProps` | `rowProps: DataGridRowElementProps;` |  |  |
| `cells` | `cells: ReactNode;` |  | The row's cells (pinned zones included), to place inside a custom row element. |
