# RowSnapshot (@salmonui/data-grid/engine)

> The RowSnapshot interface of @salmonui/data-grid/engine.

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

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

Also exported from `@salmonui/data-grid`.

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

## Reference

Kind: interface

```ts
interface RowSnapshot<Row> {
    readonly id: RowId;
    readonly kind: RowKind;
    readonly row: Row | null;
    readonly index: number;
    readonly depth: number;
    readonly parentId: RowId | null;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: RowId;` |  |  |
| `kind` | `readonly kind: RowKind;` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `index` | `readonly index: number;` |  | Position in the visible row model; -1 when the row is filtered out. |
| `depth` | `readonly depth: number;` |  |  |
| `parentId` | `readonly parentId: RowId \| null;` |  |  |
