# workbookBindingChanged

Emitted when the Grid's workbook/sheet connection changes.

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

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

## What does this API do?

Emitted when the Grid's workbook/sheet connection changes.

API for Pro features: Built-in formulas, references, dependency recalculation and calculated columns

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

## Exact input and result types

```typescript
workbookBindingChanged: GridWorkbookBindingChangedDetail
```

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

## Usage flow

Subscribe with grid.addEventListener('workbookBindingChanged', 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('workbookBindingChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

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

## Read related types

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

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

## Feature explanations and examples

- [Formula calculation](https://grid.syidax.com/docs/features/formulas.md) — Formulas evaluate strings beginning with = and display the result in a cell. For example, =SUM(A1:A3) references the first column in the original column definitions and the first three source rows.
