I try to convert an ‘old’ iOS example (using AddRow(section, value)) to an application based on the use of iOSTableDataSource. I have two sections. The section titles are displayed well but all names are added to both sections. The following code is used in RowData:
Var cell As MobileTableCellData = table.CreateCustomCell(GetTypeInfo(TableCustomCell))
Var customCell As TableCustomCell = TableCustomCell(cell.Control)
customCell.StudentName = Names(row)
Return cell```
But how can I add code into RowData to decide in which section the name must displayed? An easy example could be to store all names starting with the character 'A' in section 0 and all other names in section 1.
9 posts - 4 participants