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

> The dataIndexAt function of @salmonui/data-grid/engine/expansion: Data row index (captions, footers, detail rows, and pinned rows not counted) of the row at visible index, or -1 for a synthetic or pinned row. O(log) for plain, grouped, and detail views; lazy group views are scanned.

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

```ts
import { dataIndexAt } 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 dataIndexAt<Row>(model: RowModelSnapshot<Row>, index: number): number;
```

Data row index (captions, footers, detail rows, and pinned rows not
counted) of the row at visible `index`, or -1 for a synthetic or pinned row. O(log) for plain, grouped,
and detail views; lazy group views are scanned.
