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

> The GroupingGroupByCommand type of @salmonui/data-grid/engine: groupColumn(): appends (or inserts at index) a grouped column.

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

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

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

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 GroupingGroupByCommand = {
    type: 'grouping.groupBy';
    columnId: ColumnId;
    index?: number;
    format?: string;
};
```

`groupColumn()`: appends (or inserts at `index`) a grouped column.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'grouping.groupBy';` |  |  |
| `columnId` | `columnId: ColumnId;` |  |  |
| `index` | `index?: number;` | optional |  |
| `format` | `format?: string;` | optional |  |
