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

> The GroupedRowEnvelope interface of @salmonui/data-grid/engine: Group envelope of a lazy group load (DataSourceRequest.groupPath).

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

```ts
import type { GroupedRowEnvelope } 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 GroupedRowEnvelope<Row> {
    readonly kind: 'group';
    readonly key: Json;
    readonly columnId: ColumnId;
    readonly groupPath: readonly GroupPathSegment[];
    readonly count: number;
    readonly aggregates?: AggregateValues;
    readonly items?: readonly (Row | GroupedRowEnvelope<Row>)[];
}
```

Group envelope of a lazy group load (`DataSourceRequest.groupPath`).

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'group';` |  |  |
| `key` | `readonly key: Json;` |  |  |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `groupPath` | `readonly groupPath: readonly GroupPathSegment[];` |  |  |
| `count` | `readonly count: number;` |  | Total descendants (data rows), not loaded descendants. |
| `aggregates` | `readonly aggregates?: AggregateValues;` | optional |  |
| `items` | `readonly items?: readonly (Row \| GroupedRowEnvelope<Row>)[];` | optional | Omitted for lazy groups. |
