# RowPinningMethods (@salmonui/data-grid/engine/row-pinning)

> The RowPinningMethods type of @salmonui/data-grid/engine/row-pinning.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-row-pinning/RowPinningMethods

```ts
import type { RowPinningMethods } from '@salmonui/data-grid/engine/row-pinning';
```

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

## Reference

Kind: type

```ts
type RowPinningMethods<Row> = {
    isPinned(ctx: ModuleContext<Row>, rowId: RowId): boolean;
    getPinnedRowIds(ctx: ModuleContext<Row>): readonly RowId[];
};
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `isPinned` | `isPinned(ctx: ModuleContext<Row>, rowId: RowId): boolean;` |  | True when the row is pinned (explicitly, or by `isRowPinned` and not unpinned). Filtered-out rows can be pinned. |
| `getPinnedRowIds` | `getPinnedRowIds(ctx: ModuleContext<Row>): readonly RowId[];` |  | Ids of the pinned rows the view shows, in display order. |
