# DataGridCellValueChangeEvent (@salmonui/data-grid)

> The DataGridCellValueChangeEvent interface of @salmonui/data-grid: onBeforeCellValueChange / onCellValueChange.

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

```ts
import type { DataGridCellValueChangeEvent } 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 DataGridCellValueChangeEvent extends DataGridEvent {
    readonly rowId: RowId;
    readonly field: string;
    readonly value: unknown;
    readonly previousValue: unknown;
}
```

`onBeforeCellValueChange` / `onCellValueChange`.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `field` | `readonly field: string;` |  |  |
| `value` | `readonly value: unknown;` |  | Editor input (before parsing) in the before-event; the parsed draft value after. |
| `previousValue` | `readonly previousValue: unknown;` |  |  |
| `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). |
