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

> The EditSetValuesCommand type of @salmonui/data-grid/engine: Paste, autofill, and bulk updates: drafts for many cells; commit writes them at once (any mode but batch). A cell takes value, or the current value (draft included) of the from cell (autofill).

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

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

Also exported from `@salmonui/data-grid/engine/edit`.

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: type

```ts
type EditSetValuesCommand = {
    type: 'edit.setValues';
    cells: {
        rowId: RowId;
        columnId: ColumnId;
        value?: Json;
        from?: {
            rowId: RowId;
            columnId: ColumnId;
        };
    }[];
    commit?: boolean;
};
```

Paste, autofill, and bulk updates: drafts for many cells; `commit` writes
them at once (any mode but batch). A cell takes `value`, or the current
value (draft included) of the `from` cell (autofill).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'edit.setValues';` |  |  |
| `cells` | `cells: {     rowId: RowId;     columnId: ColumnId;     value?: Json;     from?: {         rowId: RowId;         columnId: ColumnId;     }; }[];` |  |  |
| `commit` | `commit?: boolean;` | optional |  |
