# GroupKeys

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

Expand and collapse exceptions for one set of row-grouped columns.

AdapTable uses the entry whose `RowGroupedColumns` match the layout&#39;s current row-grouped columns. `ExceptionGroupKeys` are the group-key paths that do the opposite of `RowGroupDefaultBehavior`: collapsed when the default is `'expanded'`, expanded when the default is `'collapsed'`.

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

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [ExceptionGroupKeys](https://www.adaptabletools.com/docs/reference/groupkeys.md#exceptiongroupkeys) | `any[][]` | Group-key paths that do the opposite of `RowGroupDefaultBehavior`. Each inner array is one path from the top group down. |
| [RowGroupedColumns](https://www.adaptabletools.com/docs/reference/groupkeys.md#rowgroupedcolumns) | `string[]` | Row-grouped column ids this exception list applies to. Matched against the layout&#39;s current row-grouped columns. |

## Property Details

### ExceptionGroupKeys

Group-key paths that do the opposite of `RowGroupDefaultBehavior`. Each inner array is one path from the top group down.

```ts title="TypeScript"
ExceptionGroupKeys?: any[][];
```

###### Property Value

`any[][]`

### RowGroupedColumns

Row-grouped column ids this exception list applies to. Matched against the layout&#39;s current row-grouped columns.

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

###### Property Value

`string[]`
