# DataGridEditProps (@salmonui/data-grid)

> The DataGridEditProps interface of @salmonui/data-grid: Editing props of DataGrid.

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

```ts
import type { DataGridEditProps } 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 DataGridEditProps<Row> extends DataGridClipboardProps {
    editing?: boolean | DataGridEditing<Row>;
    onBeforeEditStart?: (event: DataGridEditStartEvent<Row>) => void;
    onEditStart?: (event: DataGridEditStartEvent<Row>) => void;
    onBeforeCellValueChange?: (event: DataGridCellValueChangeEvent) => void;
    onCellValueChange?: (event: DataGridCellValueChangeEvent) => void;
    onBeforeSave?: (event: DataGridSaveEvent<Row>) => void;
    onSave?: (event: DataGridSaveEvent<Row>) => void;
    onBeforeAdd?: (event: DataGridAddEvent<Row>) => void;
    onAdd?: (event: DataGridAddEvent<Row>) => void;
    onBeforeDelete?: (event: DataGridDeleteEvent<Row>) => void;
    onDelete?: (event: DataGridDeleteEvent<Row>) => void;
    onBeforeEditCancel?: (event: DataGridEditCancelEvent) => void;
    onEditCancel?: (event: DataGridEditCancelEvent) => void;
    onCommandClick?: (event: DataGridCommandClickEvent<Row>) => void;
}
```

Editing props of `DataGrid`.

Members (17):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `editing` | `editing?: boolean \| DataGridEditing<Row>;` | optional | Editing. `true` for the defaults (row mode). The module is registered when the initial value is set. |
| `onBeforeEditStart` | `onBeforeEditStart?: (event: DataGridEditStartEvent<Row>) => void;` | optional |  |
| `onEditStart` | `onEditStart?: (event: DataGridEditStartEvent<Row>) => void;` | optional |  |
| `onBeforeCellValueChange` | `onBeforeCellValueChange?: (event: DataGridCellValueChangeEvent) => void;` | optional |  |
| `onCellValueChange` | `onCellValueChange?: (event: DataGridCellValueChangeEvent) => void;` | optional |  |
| `onBeforeSave` | `onBeforeSave?: (event: DataGridSaveEvent<Row>) => void;` | optional |  |
| `onSave` | `onSave?: (event: DataGridSaveEvent<Row>) => void;` | optional |  |
| `onBeforeAdd` | `onBeforeAdd?: (event: DataGridAddEvent<Row>) => void;` | optional |  |
| `onAdd` | `onAdd?: (event: DataGridAddEvent<Row>) => void;` | optional |  |
| `onBeforeDelete` | `onBeforeDelete?: (event: DataGridDeleteEvent<Row>) => void;` | optional |  |
| `onDelete` | `onDelete?: (event: DataGridDeleteEvent<Row>) => void;` | optional |  |
| `onBeforeEditCancel` | `onBeforeEditCancel?: (event: DataGridEditCancelEvent) => void;` | optional |  |
| `onEditCancel` | `onEditCancel?: (event: DataGridEditCancelEvent) => void;` | optional |  |
| `onCommandClick` | `onCommandClick?: (event: DataGridCommandClickEvent<Row>) => void;` | optional |  |
| `onBeforeCopy` | `onBeforeCopy?: ((event: DataGridBeforeCopyEvent) => void);` | optional, inherited |  |
| `onBeforePaste` | `onBeforePaste?: ((event: DataGridBeforePasteEvent) => void);` | optional, inherited |  |
| `onBeforeFill` | `onBeforeFill?: ((event: DataGridBeforeFillEvent) => void);` | optional, inherited |  |
