To build the table I used an example found in the forum.
Which example did you use?
I suppose that it's
THIS one, this is a very very old one.
If you want to have horizontal scrolling you might consider using the
ScrollView2D library.
B4A has changed a lot since this time.
Classes, CustomViews etc.
An evolution of the above example was this one:
[Class] TableView - Supports tables of any size
There were several improvements in that thread, ScrollView replaced by ScrollView2D.
Then it was improved by this one:
Flexible Table which is a CustomView, based on the ScrollView2D library, perhaps a bit heavy and 'complicated' at the first look.
Then, you might have a look at Erels [B4X] B4XTable - Cross platform, sortable, searchable, customizable table.
It is the most recent one, cross platform and an internal library
B4XTable shipped with B4A.
The only drawback, for me, is that it has only horizontal scrolling but no vertical scrolling. It is page based, you need to click on a button to display the next page.
There exist some other ones in the forum, I haven't searched for those.
In your layouts you may also consider the Anchors feature.