# DataGridScrollToOptions (@salmonui/data-grid)

> The DataGridScrollToOptions interface of @salmonui/data-grid.

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

```ts
import type { DataGridScrollToOptions } 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: interface

```ts
interface DataGridScrollToOptions {
    top?: number;
    left?: number;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `top` | `top?: number;` | optional | Offset from the first body row in px (row offsets as `scrollToRow` uses them; scroll compression is handled). |
| `left` | `left?: number;` | optional | Offset from the inline start of the center (unpinned) columns in px; positive in RTL too. |
