# DataGridEditColumn (@salmonui/data-grid)

> The DataGridEditColumn interface of @salmonui/data-grid: Editing fields of DataGridColumn.

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

```ts
import type { DataGridEditColumn } 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 DataGridEditColumn<Row> {
    readonly editor?: DataGridEditorType | (string & {});
    readonly editorProps?: DataGridEditorProps;
    readonly renderEditor?: (ctx: DataGridEditorContext<Row>) => ReactNode;
    readonly commands?: readonly DataGridCommandItem<Row>[];
}
```

Editing fields of `DataGridColumn`.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `editor` | `readonly editor?: DataGridEditorType \| (string & {});` | optional | Built-in editor. Default: from `type` (`number`, `boolean` -> `checkbox`, `date`, `datetime`, lookups -> `select`, else `text`). |
| `editorProps` | `readonly editorProps?: DataGridEditorProps;` | optional | Props of the built-in editor. |
| `renderEditor` | `readonly renderEditor?: (ctx: DataGridEditorContext<Row>) => ReactNode;` | optional | Custom editor. |
| `commands` | `readonly commands?: readonly DataGridCommandItem<Row>[];` | optional | Command column buttons. A column with `commands` is never edited itself. |
