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

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

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

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

Also exported from `@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: interface

```ts
interface RowSelection {
    readonly scope: 'explicit' | 'allFiltered';
    readonly ids: ReadonlySet<RowId>;
    readonly anchorId: RowId | null;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `readonly scope: 'explicit' \| 'allFiltered';` |  | `explicit`: `ids` are selected. `allFiltered`: every row matching the query is selected except `ids`. |
| `ids` | `readonly ids: ReadonlySet<RowId>;` |  | Live, module-owned set (selected ids, or excluded ids for `allFiltered`). Do not retain or mutate. |
| `anchorId` | `readonly anchorId: RowId \| null;` |  |  |
