# getDisplayedRowAtIndex

Finds a row object by its current display index. Sorting, filtering, and grouping can change the row at an index.

Canonical: https://grid.syidax.com/docs/methods/getDisplayedRowAtIndex/

<a id="meaning"></a>

## What does this API do?

Finds a row object by its current display index. Sorting, filtering, and grouping can change the row at an index.

<a id="contract"></a>

## Exact input and result types

```typescript
getDisplayedRowAtIndex(index: number): Promise<GridRowRef<GridData, unknown> | null>
```

| Arguments | Required | Type |
| --- | --- | --- |
| index | Required | number |

The return type is `Promise<GridRowRef<GridData, unknown> | null>`.

<a id="usage"></a>

## Usage flow

After registering and initializing the Grid element, call grid.getDisplayedRowAtIndex(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

<a id="types"></a>

## Read related types

- [GridRowRef](https://grid.syidax.com/docs/types/GridRowRef.md)
- [GridData](https://grid.syidax.com/docs/types/GridData.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Data and events](https://grid.syidax.com/docs/guides/data-event-access.md) — Grid APIs read or change the current state; events report the results of user interactions or data changes. Combine them to build save buttons, detail panels, and change histories.
