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

> The RowDragEventInfo interface of @salmonui/data-grid/engine: Row drag event fields the core owns (rows, target, and originalEvent are the renderer's).

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

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

Also exported from `@salmonui/data-grid/engine/row-drag-drop`.

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 RowDragEventInfo<Row = unknown> {
    readonly data: readonly Row[];
    readonly rowIds: readonly RowId[];
    readonly fromIndex: number;
    readonly dropIndex: number;
    readonly valid: boolean;
    readonly reason: string | null;
}
```

Row drag event fields the core owns (`rows`, `target`, and `originalEvent` are the renderer's).

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly Row[];` |  | Dragged row objects. |
| `rowIds` | `readonly rowIds: readonly RowId[];` |  |  |
| `fromIndex` | `readonly fromIndex: number;` |  |  |
| `dropIndex` | `readonly dropIndex: number;` |  |  |
| `valid` | `readonly valid: boolean;` |  |  |
| `reason` | `readonly reason: string \| null;` |  |  |
