# rowDragEnd

Emitted when row dragging ends. Inspect the applied result and drop position.

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

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

## What does this API do?

Emitted when row dragging ends. Inspect the applied result and drop position.

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

## Exact input and result types

```typescript
rowDragEnd: SyGridRowDragEndDetail
```

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

## Usage flow

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

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

## Read related types

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

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

## Feature explanations and examples

- [Row dragging](https://grid.syidax.com/docs/features/row-drag.md) — Managed row dragging applies user-defined order to Grid data. Manual reordering can conflict with display order determined by sorting.
