# DataGridRowDrag (@salmonui/data-grid)

> The DataGridRowDrag interface of @salmonui/data-grid: rowDrag prop.

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

```ts
import type { DataGridRowDrag } 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 DataGridRowDrag {
    readonly targetId?: string;
    readonly acrossGroups?: boolean;
    readonly orderField?: string;
    readonly handoff?: RowDragHandoff;
}
```

`rowDrag` prop.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `targetId` | `readonly targetId?: string;` | optional | Drop into another grid (its `id`) or onto a custom element (its `id`). Default: reorder within the grid. |
| `acrossGroups` | `readonly acrossGroups?: boolean;` | optional | Allow drops into another group (grouped values are rewritten). Default false. |
| `orderField` | `readonly orderField?: string;` | optional | Field holding a persisted order; drops write new values to it. |
| `handoff` | `readonly handoff?: RowDragHandoff;` | optional | Registry shared by the grids that exchange rows. Default: one registry shared by every `DataGrid` of the page. |
