B4XTable1.MaximumRowsPerPage = 20
B4XTable1.BuildLayoutsCache(B4XTable1.MaximumRowsPerPage)
For Each col As B4XTableColumn In B4XTable1.Columns
For i = 1 To column.CellsLayouts.Size - 1 'starts at 1 due to header
Dim pnl As B4XView = col.CellsLayouts.Get(i)
pnl.GetView(0).SetTextAlignment("CENTER", "LEFT")
Next
Next