# DataGridDetailContext (@salmonui/data-grid)

> The DataGridDetailContext interface of @salmonui/data-grid: Context of renderDetail.

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

```ts
import type { DataGridDetailContext } 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 DataGridDetailContext<Row> {
    readonly row: Row;
    readonly rowId: RowId;
    readonly collapse: () => void;
    readonly status: DataGridDetailStatus;
    readonly data: unknown;
    readonly error: unknown;
    readonly retry: () => void;
}
```

Context of `renderDetail`.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `collapse` | `readonly collapse: () => void;` |  | Collapses this detail row. |
| `status` | `readonly status: DataGridDetailStatus;` |  | `loadDetail` state; `ready` without a loader. |
| `data` | `readonly data: unknown;` |  | The value `loadDetail` resolved to. |
| `error` | `readonly error: unknown;` |  |  |
| `retry` | `readonly retry: () => void;` |  | Loads the detail content again (after an error). |
