Sub SetColumnAlignment(tableName As B4XTable, columnID As String, alignment As String)
Dim column As B4XTableColumn = tableName.GetColumn(columnID)
For i = 1 To column.CellsLayouts.Size - 1 'starts at 1 due to header
Dim pnl As B4XView = column.CellsLayouts.Get(i)
pnl.GetView(0).SetTextAlignment("CENTER", alignment.ToUpperCase)
Next
End Sub