# getDisplayRowInfo

Reads the displayed row kind, such as data, group, or detail.

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

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

## What does this API do?

Reads the displayed row kind, such as data, group, or detail.

API for Pro features: Row grouping, built-in aggregation and group totals

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

## Exact input and result types

```typescript
getDisplayRowInfo(index: number): Promise<SyGridDisplayRowInfo | null>
```

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

The return type is `Promise<SyGridDisplayRowInfo | null>`.

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

## Usage flow

After registering and initializing the Grid element, call grid.getDisplayRowInfo(…). 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

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

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

## Feature explanations and examples

- [Grouping and aggregation](https://grid.syidax.com/docs/features/row-grouping.md) — Row grouping collects source rows with the same region or team into expandable groups. Unlike column groups, which organize headers, row groups change displayed rows and aggregation results.
