# GridColumnProps

Props for the GridColumn component.

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| <span id="field"></span>`field` | <code>keyof TRow &amp; string</code> | Field key in the row object |
| <span id="header"></span>`header?` | <code>string</code> | Column header text (defaults to capitalized field) |
| <span id="type"></span>`type?` | <code><a href="/grid/api/core/types/columntype/">ColumnType</a></code> | Column data type |
| <span id="editable"></span>`editable?` | <code>boolean</code> | Whether the column is editable |
| <span id="sortable"></span>`sortable?` | <code>boolean</code> | Whether the column is sortable |
| <span id="resizable"></span>`resizable?` | <code>boolean</code> | Whether the column is resizable |
| <span id="width"></span>`width?` | <code>string &#124; number</code> | Column width (e.g., "100px", "10%") |
| <span id="minwidth"></span>`minWidth?` | <code>number</code> | Minimum width for stretch mode |
| <span id="order"></span>`order?` | <code>number</code> | Initial column display index |
| <span id="hidden"></span>`hidden?` | <code>boolean</code> | Whether the column is hidden |
| <span id="lockvisible"></span>`lockVisible?` | <code>boolean</code> | Prevent column from being hidden |
| <span id="options"></span>`options?` | <code><a href="/grid/react/api/types/columnoptions/">ColumnOptions</a></code> | Select/typeahead options. Serialized onto the element's `options` attribute, so values and labels must not contain `,` or `:` — pass richer option objects through `gridConfig.columns[].options` instead. |
| `children?` | <code>(ctx: <a href="/grid/api/core/interfaces/cellrendercontext/">CellRenderContext</a>&lt;TRow, TValue&gt;) =&gt; ReactNode</code> | Custom cell renderer (render prop pattern). Receives cell context and returns React node. |
| `editor?` | <code>(ctx: <a href="/grid/api/core/interfaces/columneditorcontext/">ColumnEditorContext</a>&lt;TRow, TValue&gt;) =&gt; ReactNode</code> | Custom cell editor. Receives editor context with commit/cancel functions. |
| <span id="headerrenderer"></span>`headerRenderer?` | <code>(ctx: <a href="/grid/api/core/interfaces/headercellcontext/">HeaderCellContext</a>&lt;TRow&gt;) =&gt; ReactNode</code> | Full header cell renderer. Consumer owns sort icons and filter buttons — use the `renderSortIcon` / `renderFilterButton` helpers on the context to opt in. Resize handles are appended automatically by the grid for resizable columns; do not render one yourself. |
| <span id="headerlabelrenderer"></span>`headerLabelRenderer?` | <code>(ctx: <a href="/grid/api/core/interfaces/headerlabelcontext/">HeaderLabelContext</a>&lt;TRow&gt;) =&gt; ReactNode</code> | Header label renderer. The grid keeps ownership of sort icons, filter buttons, and resize handles; this only replaces the label text. |

### Property Details

#### `children`

```tsx
<GridColumn field="status">
  {(ctx) => <StatusBadge status={ctx.value} />}
</GridColumn>
```

---

#### `editor`

```tsx
<GridColumn
  field="name"
  editable
  editor={(ctx) => (
    <input
      defaultValue={ctx.value}
      onBlur={(e) => ctx.commit(e.target.value)}
      onKeyDown={(e) => e.key === 'Escape' && ctx.cancel()}
    />
  )}
/>
```

---
