Dim tabs As ABMTabs = page.Component("tabs")
Log("tabs component found: " & tabs.GetActive) ''just to make sure I found the tabs component
Dim cont2 As ABMContainer = BuildTabContainer("tab3", "")
cont2.AddRows(1,True, "").AddCells12(1,"")
cont2.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
tabs.AddTab(tablename.Text, tablename.Text & " Inventory", cont2,3,3,3,12,12,12,True,True, "mdi-action-work", "")
page.Cell(2,1).Refresh
tabs.Refresh