# DataGridStatePart (@salmonui/data-grid/engine)

> The DataGridStatePart type of @salmonui/data-grid/engine: Persisted parts. tree is read and restored by the tree entry's wrappers (withTreeState, withTreePersistence in ./tree.js), so grids without tree mode carry none of it; it is not in DATA_GRID_STATE_PARTS.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/DataGridStatePart

```ts
import type { DataGridStatePart } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid`, `@salmonui/data-grid/engine/persistence`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: type

```ts
type DataGridStatePart = 'columns' | 'pinning' | 'sorting' | 'filters' | 'grouping' | 'paging' | 'search' | 'pinnedRows' | 'tree' | 'selection' | 'scroll';
```

Persisted parts. `tree` is read and restored by the tree entry's
wrappers (`withTreeState`, `withTreePersistence` in
`./tree.js`), so grids without tree mode carry none of
it; it is not in `DATA_GRID_STATE_PARTS`.
