# itemIndexChanged

> Called when an item is moved in the itemsSource.

## Definition

* **Type:** Event
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public event Action<int, int> itemIndexChanged
```

### Remarks

This callback receives two IDs, the first being the ID being moved, the second being the destination ID. In the case of a tree, the destination is the parent ID.
