# DataGridMergeCells (@salmonui/data-grid)

> The DataGridMergeCells type of @salmonui/data-grid: DataGrid-wide merging of equal adjacent values: true both directions, 'rows' vertical (rowSpan: true on every column), 'columns' horizontal. A column's own colSpan / rowSpan wins.

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

```ts
import type { DataGridMergeCells } 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: type

```ts
type DataGridMergeCells = boolean | 'rows' | 'columns';
```

DataGrid-wide merging of equal adjacent values: `true` both directions,
`'rows'` vertical (`rowSpan: true` on every column), `'columns'`
horizontal. A column's own `colSpan` / `rowSpan` wins.
