iOSTable.InsertSection
From Xojo Documentation
Method
Inserts a section at the index. A DataSource is required.
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
Inserts 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
Inserts a row in the first position of the table, retrieving its value from the specified DataSource:
Table1.InsertRow(0)
Inserts a section at the top of the table:
Table1.InsertSection(0, "First!")