I have been watching the items on TableView and have found using the various tips that:
1. I can add a row of data to a tableview (2 rows in my case)
2. I can click on the first and second rows and they show as selected (blue bar on row)
3. I cannot see the data in each cell of the row
4. I can retrieve the items from each cell and row and display them successfully in a textedit
What puzzles me is - why does the data not display in the cells in each row?
The first tableview was added to the Mainform using the Scene Builder and then I generated the members.
I decided to try adding another tableview to the Mainform in CODE and interestingly everything displays fine when I add and display the the same data using the same subs(tableview).
So now we have two tableviews(one in the layout and the other added in code), the first one has the data but does not show, the second works fine.
If that is not enough for you, I will upload the project.
It was indeed confusing. You should first create the columns:
B4X:
Sub setTvHeadings(tv As TableView)
MainForm.Title = "People"
tv.SetColumns(Array As String("Col1", "Col2", "Col3")) '<----- C
tv.SetColumnHeader(0,"Name")
tv.SetColumnHeader(1,"Dob")
tv.SetColumnHeader(2,"Age")
End Sub