# SyGridReparentResult

Fields, allowed values, and APIs that use SyGridReparentResult.

Canonical: https://grid.syidax.com/docs/types/SyGridReparentResult/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export type SyGridReparentResult =
  | {
    readonly status: 'applied';
    readonly newParentId: string | null;
    readonly moved: ReadonlyArray<SyGridReparentEntry>;
    readonly refused: ReadonlyArray<SyGridReparentEntry>;
    readonly rowCount: number;
  }
  | {
    readonly status: 'refused';
    readonly reason: SyGridReparentRefusalReason;
    readonly detail: string;
    readonly entries: ReadonlyArray<SyGridReparentEntry>;
  };
```

<a id="used-by"></a>

## APIs using this type

- [reparentRows](https://grid.syidax.com/docs/methods/reparentRows.md) — Reparents tree rows and reports applied/rejected results. Check cycle, permission, and row-model restrictions.

<a id="parents"></a>

## Contracts containing this type

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

<a id="related"></a>

## Related types

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