# rangeSelection

Enables rectangular cell selection, independently of row selection. Supplies ranges for copying, filling, and chart integration.

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

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

## What does this API do?

Enables rectangular cell selection, independently of row selection. Supplies ranges for copying, filling, and chart integration.

API for Pro features: Cell range selection

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

## Exact input and result types

```typescript
rangeSelection: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | rangeSelection |
| HTML attribute | range-selection |
| Default | false |
| Input type | boolean |

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

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the range-selection attribute. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<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.
