# TransposeConfig

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

Config used when transposing a Grid

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

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [columnsToTranspose](https://www.adaptabletools.com/docs/reference/transposeconfig.md#columnstotranspose) | `string[] \| ((context: `[`AdaptableColumnsContext`](https://www.adaptabletools.com/docs/reference/adaptablecolumnscontext.md)`) => string[])` | Ids of Columns to Transpose | all Grid Columns |
| [hideTransposedColumn](https://www.adaptabletools.com/docs/reference/transposeconfig.md#hidetransposedcolumn) | `boolean` | Hide the Transposed Column | true |
| [rowsToTranspose](https://www.adaptabletools.com/docs/reference/transposeconfig.md#rowstotranspose) | `TypeHint<string, 'VisibleOnly' \| 'All'>` | Which rows are transposed. `'All'` (the default, also used when omitted) takes every row. `'VisibleOnly'` takes the rows currently visible. Any other string is a boolean AdapTableQL expression, and only matching rows are transposed. | All |
| [transposedColumnId](https://www.adaptabletools.com/docs/reference/transposeconfig.md#transposedcolumnid) | `string` | Column to use to do Transposition | Primary Key Column |

## Property Details

### columnsToTranspose

Ids of Columns to Transpose

```ts title="TypeScript"
columnsToTranspose?: string[] | ((context: AdaptableColumnsContext) => string[]);
```

###### Default Value

all Grid Columns

###### Property Value

`string[] | ((context: `[`AdaptableColumnsContext`](https://www.adaptabletools.com/docs/reference/adaptablecolumnscontext.md)`) => string[])`

### hideTransposedColumn

Hide the Transposed Column

```ts title="TypeScript"
hideTransposedColumn?: boolean;
```

###### Default Value

true

###### Property Value

`boolean`

### rowsToTranspose

Which rows are transposed. `'All'` (the default, also used when omitted) takes every row. `'VisibleOnly'` takes the rows currently visible. Any other string is a boolean AdapTableQL expression, and only matching rows are transposed.

```ts title="TypeScript"
rowsToTranspose?: TypeHint<string, 'VisibleOnly' | 'All'>;
```

###### Default Value

All

###### Property Value

`TypeHint<string, 'VisibleOnly' | 'All'>`

### transposedColumnId

Column to use to do Transposition

```ts title="TypeScript"
transposedColumnId?: string;
```

###### Default Value

Primary Key Column

###### Property Value

`string`
