# DataGridChildGridParent (@salmonui/data-grid)

> The DataGridChildGridParent interface of @salmonui/data-grid: The parent row a child grid belongs to (factory form of childGrid.data).

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

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

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

## Reference

Kind: interface

```ts
interface DataGridChildGridParent<Parent> {
    readonly rowId: RowId;
    readonly row: Parent;
    readonly depth: number;
}
```

The parent row a child grid belongs to (factory form of `childGrid.data`).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rowId` | `readonly rowId: RowId;` |  |  |
| `row` | `readonly row: Parent;` |  |  |
| `depth` | `readonly depth: number;` |  | Depth of the child grid (1 for children of the root grid). |
