From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

iOSMobileTableDataSource.SectionTitle(table As iOSMobileTable, section As Integer) As String

Supported on Mobile.

Return the title for the section.


Parameter Description
table The iOSMobileTable instance using this data source.
section This is the section that has been requested.


If you are not using sections, you can return empty text ("") here.

When using sections, return the name for the specified section. For example, if you are displaying names with sections for each letter of the alphabet, you might return "A" when section of 0 is passed in as a parameter.

Sample Code

Refer to the data source example in the User Guide to see how to set up a Data Source that returns names, with sections for the first letter of each last name.

You can also refer to the sample project included with Xojo:

  • Examples/iOS/Controls/Table/TableDataSource