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

> The ColumnsStateInit interface of @salmonui/data-grid/engine: Initial runtime column state (DataGridOptions.initialColumnState); applied before the server snapshot.

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

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

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: interface

```ts
interface ColumnsStateInit {
    readonly visibility?: Readonly<Record<ColumnId, boolean>>;
    readonly widths?: Readonly<Record<ColumnId, number>>;
    readonly order?: readonly ColumnId[] | null;
    readonly freeze?: Readonly<Record<ColumnId, ColumnFreeze | null>>;
    readonly frozenCount?: {
        readonly left?: number;
        readonly right?: number;
    };
}
```

Initial runtime column state (`DataGridOptions.initialColumnState`); applied before the server snapshot.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `visibility` | `readonly visibility?: Readonly<Record<ColumnId, boolean>>;` | optional |  |
| `widths` | `readonly widths?: Readonly<Record<ColumnId, number>>;` | optional |  |
| `order` | `readonly order?: readonly ColumnId[] \| null;` | optional |  |
| `freeze` | `readonly freeze?: Readonly<Record<ColumnId, ColumnFreeze \| null>>;` | optional | Runtime freeze overrides (`null` unfreezes a column that declares `pinned`). |
| `frozenCount` | `readonly frozenCount?: {     readonly left?: number;     readonly right?: number; };` | optional | Frozen column counts. |
