iOSMobileTable.AddSectionAt

From Xojo Documentation

Method

iOSMobileTable.AddSectionAt(index As Integer)

Supported on Mobile.

Adds a section at the index.

Parameters

Parameter Description
index The section is added before this index section.

Notes

When you insert a section using this method, its value is fetched from the DataSource. This method only works when the table has a DataSource specified. It does nothing when the table does not have a DataSource.


Method

iOSMobileTable.AddSectionAt(index As Integer, title As String)

Supported on Mobile.

Adds the section title at the specified index.

Parameters

Parameter Description
index The section is added before this index section.
title The title for the section being inserted.

Exceptions

Exception Description
OutOfBoundsException When the index does not exist.

Sample Code

Adds a row in the first position of the table, retrieving its value from the specified DataSource:

Table1.AddRowAt(0)

Inserts a section at the top of the table:

Table1.AddSectionAt(0, "First!")