Dim tbl As WinForm.Table
tbl = e.Form.CreateSQL Table("Table1", "Sele ct * From {产品_基础主库明细}", "2022")
tbl.SetBounds(10, 10, e.Form.Width - 10 , e.Form.Height - 50)
e.Form.AddControl(tbl)
tbl.Table.SetColVi sibleWidth("产品ID|110|SKUID|120|品牌商标|80|制造基地|100|产品模块|100|产品大类|100|产品分类|100|中文名称|100|标准尺寸|100|材质等级|100|外观材质|100|备注|100")
' tbl.Left = 80 ' 锚定控件距离
tbl.Top = 40 ' 锚定控件距离
' tbl.Filter = "[_Id entify] Is Null" 报错
tbl.Width = e.Form.Width
tbl.Height = e.Form.Height