# cellValueChanged

Emitted when an actual cell value changes. Use the row, field, and before/after values for saving or activity history.

Canonical: https://grid.syidax.com/docs/events/cellValueChanged/

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

## What does this API do?

Emitted when an actual cell value changes. Use the row, field, and before/after values for saving or activity history.

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

## Exact input and result types

```typescript
cellValueChanged: GridCellValueChangedDetail
```

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

## Usage flow

Subscribe with grid.addEventListener('cellValueChanged', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('cellValueChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

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

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

## Feature explanations and examples

- [Data updates](https://grid.syidax.com/docs/features/data-updates.md) — Replace rowData when receiving a complete query result. For partial changes, pass add, update, and remove to applyTransaction. Updates match through getRowId, not display positions.
