# reparentRows

Reparents tree rows and reports applied/rejected results. Check cycle, permission, and row-model restrictions.

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

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

## What does this API do?

Reparents tree rows and reports applied/rejected results. Check cycle, permission, and row-model restrictions.

API for Pro features: Tree data

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

## Exact input and result types

```typescript
reparentRows(request: SyGridReparentRequest): Promise<SyGridReparentResult>
```

| Arguments | Required | Type |
| --- | --- | --- |
| request | Required | SyGridReparentRequest |

The return type is `Promise<SyGridReparentResult>`.

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

## Usage flow

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

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

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

## Feature explanations and examples

- [Tree data](https://grid.syidax.com/docs/features/tree-data.md) — Trees display parent-child data, such as folders or organizations, with indentation and expansion controls. Unlike grouping equal values, the parent relationship already exists in the data.
