B4J Question TableView - data is added can be retrieved but not visible

Hilton

Active Member
Licensed User
Longtime User
Hi Folks,

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?

Thanks,
Hiltonl
 

Hilton

Active Member
Licensed User
Longtime User
Thanks Erel.

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.

Thanks,
Hilton.
 
Upvote 0

Hilton

Active Member
Licensed User
Longtime User
Erel,

My apologies, I must have done it wrong as it is the first time I have tried.

Hilton.
 

Attachments

  • learning.zip
    1.6 KB · Views: 358
Upvote 0

Hilton

Active Member
Licensed User
Longtime User
Erel,

I foolishly assumed that setting up the columns in the Scene Builder that they would have been created for me. Ok, no more assuming!

Thank you very much,
Hilton.
 
Upvote 0
Top