iOSMobileTableDataSourceEditing.AllowRowEditing

From Xojo Documentation

Revision as of 15:32, 17 November 2020 by Gperlman (talk | contribs) (Gperlman moved page iOSMobileTableDataSourceEditing.RowIsEditable to iOSMobileTableDataSourceEditing.AllowRowEditing without leaving a redirect)
Method

iOSMobileTableDataSourceEditing.AllowRowEditing(table As iOSMobileTable, section As Integer, row As Integer) As Boolean

Supported on Mobile.

Asks the data source if the specified row can be edited. Most data sources that implement this interface will unconditionally return True.

Parameters

Parameter Description
table This is the table that uses this data source.
section This is the section containing the row.
row This is the row.

Notes

The specific type of edit that is allowed (None, Insert or Delete) is specified in the iOSMobileTable.RowEditingStyles event.

To allow row actions to work you must Return True from this method.

Sample Code

In most cases, you will simply return True for this method to allow the row to be edited: