# GridCellRange

Canonical page: https://www.adaptabletools.com/docs/reference/gridcellrange

A rectangular cell selection passed to `selectCellRange`.

`columnIds` is required. The rows are resolved from primary keys when `primaryKeyValueEnd` is set: the start row is `primaryKeyValueStart` and the end row is `primaryKeyValueEnd`. When `primaryKeyValueEnd` is omitted, both rows are resolved from `rowIndexStart` and `rowIndexEnd`. A range with only `primaryKeyValueStart` is resolved by row index. Omit `rowIndexEnd` and the range is the single start row.

```ts title="TypeScript"
export interface GridCellRange 
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [columnIds](https://www.adaptabletools.com/docs/reference/gridcellrange.md#columnids) | `string[]` | Column ids in the selection. Required. |
| [primaryKeyValueEnd](https://www.adaptabletools.com/docs/reference/gridcellrange.md#primarykeyvalueend) | `any` | Primary key of the last row. When this is set, both row ends are resolved by primary key. |
| [primaryKeyValueStart](https://www.adaptabletools.com/docs/reference/gridcellrange.md#primarykeyvaluestart) | `any` | Primary key of the first row. Used when `primaryKeyValueEnd` is set. |
| [rowIndexEnd](https://www.adaptabletools.com/docs/reference/gridcellrange.md#rowindexend) | `any` | Index of the last row. Used when `primaryKeyValueEnd` is omitted. When this is omitted too, the range is the single start row. |
| [rowIndexStart](https://www.adaptabletools.com/docs/reference/gridcellrange.md#rowindexstart) | `any` | Index of the first row. Used when `primaryKeyValueEnd` is omitted. |

## Property Details

### columnIds

Column ids in the selection. Required.

```ts title="TypeScript"
columnIds: string[];
```

###### Property Value

`string[]`

### primaryKeyValueEnd

Primary key of the last row. When this is set, both row ends are resolved by primary key.

```ts title="TypeScript"
primaryKeyValueEnd?: any;
```

###### Property Value

`any`

### primaryKeyValueStart

Primary key of the first row. Used when `primaryKeyValueEnd` is set.

```ts title="TypeScript"
primaryKeyValueStart?: any;
```

###### Property Value

`any`

### rowIndexEnd

Index of the last row. Used when `primaryKeyValueEnd` is omitted. When this is omitted too, the range is the single start row.

```ts title="TypeScript"
rowIndexEnd?: any;
```

###### Property Value

`any`

### rowIndexStart

Index of the first row. Used when `primaryKeyValueEnd` is omitted.

```ts title="TypeScript"
rowIndexStart?: any;
```

###### Property Value

`any`
