# getCellRanges

Reads current cell selection boundaries. Review the meaning of display row/column coordinates.

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

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

## What does this API do?

Reads current cell selection boundaries. Review the meaning of display row/column coordinates.

API for Pro features: Cell range selection

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

## Exact input and result types

```typescript
getCellRanges(): Promise<CellRangeBounds[]>
```

| Arguments | Required | Type |
| --- | --- | --- |

The return type is `Promise<CellRangeBounds[]>`.

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

## Usage flow

After registering and initializing the Grid element, call grid.getCellRanges(…). 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

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

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

## Feature explanations and examples

- [Cell range selection](https://grid.syidax.com/docs/features/range-selection.md) — A cell range is a rectangle spanning rows and columns. It defines the scope for copying, pasting, filling, and chart creation; selecting it does not change values.
