iOSMobileTableDataSource.RowCount

From Xojo Documentation

Revision as of 02:43, 4 November 2020 by Gperlman (talk | contribs)
(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

iOSMobileTableDataSource.RowCount(table As iOSMobileTable, section As Integer) As Integer

Supported on Mobile(iOS).

Return the number of rows for the section.

Parameters

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

Notes

Your class should return the number of rows in your data source for this section. For example, if you are showing a list of names in sections for the first letter of the last name, then this method would return the number of names in the specified section.

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