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

> The SerializedSelection type of @salmonui/data-grid/engine: JSON form (getState/restore, persistence, server-side select-all).

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

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

Also exported from `@salmonui/data-grid`, `@salmonui/data-grid/engine/selection`.

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: type

```ts
type SerializedSelection = {
    readonly scope: 'explicit' | 'allFiltered';
    readonly rowIds: readonly RowId[];
    readonly excludedRowIds: readonly RowId[];
    readonly anchorRowId: RowId | null;
    readonly cellRanges: readonly CellRange[];
    readonly columnIds: readonly ColumnId[];
};
```

JSON form (getState/restore, persistence, server-side select-all).

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `readonly scope: 'explicit' \| 'allFiltered';` |  |  |
| `rowIds` | `readonly rowIds: readonly RowId[];` |  | `explicit`: selected ids. |
| `excludedRowIds` | `readonly excludedRowIds: readonly RowId[];` |  | `allFiltered`: excluded ids. |
| `anchorRowId` | `readonly anchorRowId: RowId \| null;` |  |  |
| `cellRanges` | `readonly cellRanges: readonly CellRange[];` |  |  |
| `columnIds` | `readonly columnIds: readonly ColumnId[];` |  |  |
