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

> The getSourceIndex function of @salmonui/data-grid/engine: Source index of the row at a visible index, or -1 (also for synthetic rows such as group captions).

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

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

```ts
function getSourceIndex<Row>(model: RowModelSnapshot<Row>, visibleIndex: number): number;
```

Source index of the row at a visible index, or -1 (also for synthetic rows such as group captions).
