# defaultColDef

Defaults shared by all columns. Override individual values in columnDefs for specific columns.

Canonical: https://grid.syidax.com/docs/options/defaultColDef/

<a id="meaning"></a>

## What does this API do?

Defaults shared by all columns. Override individual values in columnDefs for specific columns.

<a id="contract"></a>

## Exact input and result types

```typescript
defaultColDef: Partial<ColumnDef>
```

| Item | Value |
| --- | --- |
| JavaScript name | defaultColDef |
| HTML attribute | default-col-def |
| Default | undefined |
| Input type | Partial<ColumnDef> |

<a id="usage"></a>

## Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="types"></a>

## Read related types

- [ColumnDef](https://grid.syidax.com/docs/types/ColumnDef.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Data updates](https://grid.syidax.com/docs/features/data-updates.md) — Replace rowData when receiving a complete query result. For partial changes, pass add, update, and remove to applyTransaction. Updates match through getRowId, not display positions.
