# DataGridSpan (@salmonui/data-grid)

> The DataGridSpan type of @salmonui/data-grid: Span of a cell: a function returns an explicit span (1 = no span); true merges equal adjacent non-empty values. Called for rendered rows only.

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

```ts
import type { DataGridSpan } 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 DataGridSpan<Row> = boolean | ((ctx: DataGridSpanContext<Row>) => number);
```

Span of a cell: a function returns an explicit span (1 = no span); `true`
merges equal adjacent non-empty values. Called for rendered rows only.
