# detailParentId (@salmonui/data-grid/engine/expansion)

> The detailParentId function of @salmonui/data-grid/engine/expansion: Parent row id of a detail row id, or null when id is not a detail row id.

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

```ts
import { detailParentId } from '@salmonui/data-grid/engine/expansion';
```

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

## Reference

Kind: function

```ts
function detailParentId(id: RowId): RowId | null;
```

Parent row id of a detail row id, or null when `id` is not a detail row id.
