# getCellSpan

Reads horizontal and vertical span information for a cell.

Canonical: https://grid.syidax.com/docs/methods/getCellSpan/

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

## What does this API do?

Reads horizontal and vertical span information for a cell.

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

## Exact input and result types

```typescript
getCellSpan(rowIndex: number, colId: string): Promise<SyGridCellSpanInfo | null>
```

| Arguments | Required | Type |
| --- | --- | --- |
| rowIndex | Required | number |
| colId | Required | string |

The return type is `Promise<SyGridCellSpanInfo | null>`.

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

## Usage flow

After registering and initializing the Grid element, call grid.getCellSpan(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

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

## Read related types

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

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

## Feature explanations and examples

- [Row height and pinned rows](https://grid.syidax.com/docs/features/row-layout.md) — Row height, top/bottom pinned rows, full-width rows, and merged cells are separate layout features. Choose based on whether you need persistent summaries or wide detail content.
