Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXCollectionView.MoveItem(Int32, Int32, Action, Boolean) Method

Moves the item with the specified index to the specified position within the DXCollectionView with the specified action and animation.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

#Declaration

C#
public void MoveItem(
    int fromItemHandle,
    int toItemHandle,
    Action completion,
    bool animate = true
)

#Parameters

Name Type Description
fromItemHandle Int32

The current index of the item.

toItemHandle Int32

The new index of the item.

completion Action

The action that executes when the item is moved.

#Optional Parameters

Name Type Default Description
animate Boolean True

The animation that is displayed when the item is moved.

See Also