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

> The ColumnsSetPinningCommand type of @salmonui/data-grid/engine: Replaces the runtime pin state as a whole (freeze overrides and counts) without moving columns; state restore uses it. Unknown ids are dropped.

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

```ts
import type { ColumnsSetPinningCommand } 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: type

```ts
type ColumnsSetPinningCommand = {
    readonly type: 'columns.setPinning';
    readonly freeze: Readonly<Record<ColumnId, ColumnFreeze | null>>;
    readonly frozenCount: {
        readonly left?: number;
        readonly right?: number;
    };
};
```

Replaces the runtime pin state as a whole (freeze overrides and counts)
without moving columns; state restore uses it. Unknown ids are
dropped.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: 'columns.setPinning';` |  |  |
| `freeze` | `readonly freeze: Readonly<Record<ColumnId, ColumnFreeze \| null>>;` |  |  |
| `frozenCount` | `readonly frozenCount: {     readonly left?: number;     readonly right?: number; };` |  |  |
