iOSMobileTableDataSourceReordering.RowMoved

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

iOSMobileTableDataSourceReordering.RowMoved(table As iOSMobileTable, sourceSection As Integer, sourceRow As Integer, destSection As Integer, destRow As Integer)

Supported on Mobile.

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 String = Data(sourceRow)
Data.RemoveRowAt(sourceRow)

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