LoadData
table1.MaximumRowsPerPage = 15
table1.BuildLayoutsCache(B4XTable1.MaximumRowsPerPage)
If xui.IsB4J Then B4XTable1.HighlightSearchResults = False
' For i = 1 To editcol.CellsLayouts.Size - 1
' Dim p As B4XView = editcol.CellsLayouts.Get(i)
' p.AddView(CreateButton("btnEdit", Chr(0xF044)), 2dip, 5dip, 40dip, 40dip)
' p.AddView(CreateButton("btnDelete", Chr(0xF00D)), 44dip, 5dip, 40dip, 40dip)
' 'p.AddView(CreateButton("btnDuplicate",Chr(0xF0C5)), 85dip, 5dip, 40dip, 40dip)
' Next
Sleep(0) 'let the table resize
For i = 1 To editcol.CellsLayouts.Size - 1
'For i = 1 To B4XTable1.VisibleRowIds.Size - 1
Dim p As B4XView = editcol.CellsLayouts.Get(i)
Dim p2 As B4XView= xui.CreatePanel("")
p.AddView(p2, 0, 0, p.Width, p.Height)
p2.tag=i
p2.LoadLayout("control1")
'for Each v As B4XView In p.getAllViewsRecursive
' v.Visible=False
'Next
'Dim LayoutParent As B4XView = xui.CreatePanel("")
'p.AddView(LayoutParent, 0, 0, p.Width, p.Height)
'LayoutParent.LoadLayout("control1")
'LayoutParent.Visible=False
'p.LoadLayout("control2")
Next