# getSelectedRowIds

Reads selected row IDs. Use dedicated server selection state APIs for server-wide selection.

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

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

## What does this API do?

Reads selected row IDs. Use dedicated server selection state APIs for server-wide selection.

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

## Exact input and result types

```typescript
getSelectedRowIds(): Promise<ReadonlyArray<string | number>>
```

| Arguments | Required | Type |
| --- | --- | --- |

The return type is `Promise<ReadonlyArray<string | number>>`.

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

## Usage flow

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

- [Row selection](https://grid.syidax.com/docs/features/row-selection.md) — Row selection chooses targets for bulk actions such as approval, export, or assignment. Unlike cell range selection, it selects an entire order.
