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

> The SelectionSelectRangeCommand type of @salmonui/data-grid/engine: Rows between fromId (default: the anchor) and toId in visible order.

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

```ts
import type { SelectionSelectRangeCommand } 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: type

```ts
type SelectionSelectRangeCommand = {
    type: 'selection.selectRange';
    toId: RowId;
    fromId?: RowId;
    mode?: 'replace' | 'add';
};
```

Rows between `fromId` (default: the anchor) and `toId` in visible order.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'selection.selectRange';` |  |  |
| `toId` | `toId: RowId;` |  |  |
| `fromId` | `fromId?: RowId;` | optional |  |
| `mode` | `mode?: 'replace' \| 'add';` | optional |  |
