# setValueColumns

Replaces the pivot value axis through the validated update path and returns success.

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

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

## What does this API do?

Replaces the pivot value axis through the validated update path and returns success.

API for Pro features: Pivot

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

## Exact input and result types

```typescript
setValueColumns(columns: string[]): Promise<boolean>
```

| Arguments | Required | Type |
| --- | --- | --- |
| columns | Required | string[] |

The return type is `Promise<boolean>`.

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

## Usage flow

After registering and initializing the Grid element, call grid.setValueColumns(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

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

## Feature explanations and examples

- [Pivot analysis](https://grid.syidax.com/docs/features/pivot.md) — Pivoting divides source orders into row, column, and value axes to create a cross-tabulation. Unlike collapsible row groups, unique values such as statuses become new result columns.
