DesktopListBox.AllowRowReordering

From Xojo Documentation

Property (As Boolean )
aDesktopListBox.AllowRowReordering = newBooleanValue
or
BooleanValue = aDesktopListBox.AllowRowReordering

New in 2021r3

Supported for all project types and targets.

If True, you can reorder rows within the DesktopListBox by dragging rows.

Notes

An insertion line indicator appears when dragging within the DesktopListBox to provide you with visual feedback as to where the row would be dropped if you release the mouse button.

fa-info-circle-32.png
You cannot drag rows on a ListBox with expandable rows (hierarchical) and as a result, setting this property to True has no effect.

Example

This example enables the drag reorder feature.

Me.AllowRowReordering = True