# GridColumnState

> _Since v0.1.1_

Complete grid column state for persistence.
Contains state for all columns, including plugin-contributed properties.

#### Example

```typescript
// Save state
const state = grid.getColumnState();
localStorage.setItem('grid-state', JSON.stringify(state));

// Restore state
grid.applyColumnState(JSON.parse(localStorage.getItem('grid-state')));
```

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `columns` | <code><a href="/grid/api/core/interfaces/columnstate/">ColumnState</a>[]</code> | Array of column states. |

## See Also

- [`ColumnState`](/grid/api/core/interfaces/columnstate.md) for individual column state
- [`PublicGrid.getColumnState`](/grid/api/core/interfaces/publicgrid.md#getcolumnstate) for retrieving state
