# setHoveredRow

Sets the row targeted by stateful hover. Does not change actual row selection.

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

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

## What does this API do?

Sets the row targeted by stateful hover. Does not change actual row selection.

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

## Exact input and result types

```typescript
setHoveredRow(rowId: string | number | null): Promise<void>
```

| Arguments | Required | Type |
| --- | --- | --- |
| rowId | Required | string \| number \| null |

The return type is `Promise<void>`.

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

## Usage flow

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

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

## Feature explanations and examples

- [Follow rows](https://grid.syidax.com/docs/features/row-hover.md) — Row hover highlights the row under the pointer to help users read wide tables. It differs from row selection and does not automatically select a row for business operations.
