iOSMobileTableDataSourceEditing.AllowRowEditing

From Xojo Documentation

Revision as of 20:29, 18 January 2022 by Afoley (talk | contribs) (Sample Code: simply)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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 return True for this method to allow the row to be edited: