# pinnedRowsChanged

Emitted when top/bottom pinned row data changes.

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

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

## What does this API do?

Emitted when top/bottom pinned row data changes.

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

## Exact input and result types

```typescript
pinnedRowsChanged: SyGridPinnedRowsChangedDetail<GridRow>
```

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

## Usage flow

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

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

## Read related types

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

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

## Feature explanations and examples

- [Row height and pinned rows](https://grid.syidax.com/docs/features/row-layout.md) — Row height, top/bottom pinned rows, full-width rows, and merged cells are separate layout features. Choose based on whether you need persistent summaries or wide detail content.
