# stopRowEdit

Commits or cancels current row editing and returns a report.

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

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

## What does this API do?

Commits or cancels current row editing and returns a report.

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

## Exact input and result types

```typescript
stopRowEdit(reason?: 'commit' | 'cancel'): Promise<SyGridRowEditReport>
```

| Arguments | Required | Type |
| --- | --- | --- |
| reason | Optional | 'commit' \| 'cancel' |

The return type is `Promise<SyGridRowEditReport>`.

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

## Usage flow

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

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

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

## Feature explanations and examples

- [Cell and row editing](https://grid.syidax.com/docs/features/cell-editing.md) — Cell editing changes one value immediately; full-row editing commits multiple fields as one row operation. editor specifies the input UI, while editable controls write access.
