iOSTableDataSourceEditing.RowIsEditable
From Xojo Documentation
Method
iOSTableDataSourceEditing.RowIsEditable(table As iOSTable, section As Integer, row As Integer, action As iOSTable.RowEditingStyles)
Supported on Mobile(iOS).
Supported on Mobile(iOS).
Tells the data source that the user wants a row inserted or removed. The data source should update its internal state and inform the table of its changes. Data sources must not alter the table's editing state from within this method.
Parameters
Parameter | Description |
---|---|
table | This is the table that uses this data source. |
section | This is the section containing the row that was edited. |
row | This is the row that was edited. |
action | This is the type of edit, using iOSTable.RowEditingStyles. |
Sample Code
If the user deleted a row, then remove it from the mSections Dictionary property used by the data source and remove it from the table: