# columnReordered

Emitted when column order changes.

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

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

## What does this API do?

Emitted when column order changes.

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

## Exact input and result types

```typescript
columnReordered: GridColumnReorderedDetail
```

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

## Usage flow

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

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

## Read related types

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

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

## Feature explanations and examples

- [Column sizing and pinning](https://grid.syidax.com/docs/features/column-operations.md) — Width, order, pinning, and visibility are independent column states. Combine them to pin order IDs, hide supporting information, and widen long product names.
