iOSTableDataSourceReordering.RowMoved

From Xojo Documentation

Method

iOSTableDataSourceReordering.RowMoved(table As iOSTable, sourceSection As Integer, sourceRow As Integer, destSection As Integer, destRow As Integer)

Supported on Mobile(iOS).

Informs the data source that a row has been moved and that it needs to update its internal state to match this new order.

Parameters

Parameter Description
table This is the table that uses this data source.
sourceSection The original section for the row.
sourceRow The original row.
destSection The destination section for the row.
destRow The destination row.

Sample Code

// Remove row from its original location
Var origValue As Text = Data(sourceRow)
Data.Remove(sourceRow)

// Add it to its new location
Data.Insert(destRow, origValue)