# DataGridEditStartEvent (@salmonui/data-grid)

> The DataGridEditStartEvent interface of @salmonui/data-grid: onBeforeEditStart / onEditStart.

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

```ts
import type { DataGridEditStartEvent } 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 DataGridEditStartEvent<Row> extends DataGridEvent {
    readonly rowId: RowId;
    readonly row: Row | undefined;
    readonly field: string | null;
    readonly mode: EditMode;
    readonly isNew: boolean;
}
```

`onBeforeEditStart` / `onEditStart`.

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `row` | `readonly row: Row \| undefined;` |  | The row (the draft base for added rows). |
| `field` | `readonly field: string \| null;` |  | The cell in batch and cell mode (and the focused editor in row mode); null otherwise. |
| `mode` | `readonly mode: EditMode;` |  |  |
| `isNew` | `readonly isNew: boolean;` |  |  |
| `type` | `type: string;` | inherited | `'sortChange'`, `'beforeSortChange'`, ... |
| `source` | `source: DataGridEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited | True after `preventDefault()` (before-events and click events). |
| `preventDefault` | `preventDefault: () => void;` | inherited | Before-events and click events: cancels the action (or the built-in behavior). |
