# cancelBatchEdit

Cancels pending batch edits and returns the cancelled item count.

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

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

## What does this API do?

Cancels pending batch edits and returns the cancelled item count.

API for Pro features: Batch editing

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

## Exact input and result types

```typescript
cancelBatchEdit(): Promise<number>
```

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

The return type is `Promise<number>`.

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

## Usage flow

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

- [Batch editing](https://grid.syidax.com/docs/features/batch-editing.md) — Batch editing stages changes to multiple cells for a single commit or cancellation. Distinguish staged values from committed rowData to make the Save action clear.
