# isPinnedIndex (@salmonui/data-grid/engine/row-drag-drop)

> The isPinnedIndex function of @salmonui/data-grid/engine/row-drag-drop: True for a visible index among the pinned rows, which head the model. Pinned rows are neither drag sources nor drop targets: their place comes from pinning and the sort, not from the row order.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-row-drag-drop/isPinnedIndex

```ts
import { isPinnedIndex } from '@salmonui/data-grid/engine/row-drag-drop';
```

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

## Reference

Kind: function

```ts
function isPinnedIndex<Row>(model: RowModelSnapshot<Row>, index: number): boolean;
```

True for a visible index among the pinned rows, which head the
model. Pinned rows are neither drag sources nor drop targets: their place
comes from pinning and the sort, not from the row order.
