Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
Dim c1 As B4XTableColumn = B4XTable1.AddColumn("Col 1", B4XTable1.COLUMN_TYPE_TEXT)
B4XTable1.AddColumn("Col 2", B4XTable1.COLUMN_TYPE_NUMBERS)
Dim data As List
data.Initialize
For i = 1 To 100
data.Add(Array("Item #" & i, i))
Next
B4XTable1.MaximumRowsPerPage = 20
B4XTable1.BuildLayoutsCache(B4XTable1.MaximumRowsPerPage)
For i = 1 To c1.CellsLayouts.Size - 1 'skipping the header
Dim pnl As B4XView = c1.CellsLayouts.Get(i)
pnl.GetView(c1.LabelIndex).Font = xui.CreateDefaultBoldFont(16)
Next
B4XTable1.SetData(data)
End Sub