# useDataGridApi (@salmonui/data-grid)

> The useDataGridApi function of @salmonui/data-grid: The imperative API of the enclosing DataGrid, for slots and descendants.

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

```ts
import { useDataGridApi } 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: function

```ts
function useDataGridApi<Row = unknown>(): DataGridApi<Row>;
```

The imperative API of the enclosing `DataGrid`, for slots and descendants.
