窗口代码是:
Dim dtb As New DataTableBuilder("统计2")
dtb.AddDef("产品", Gettype(String), 20)
dtb.AddDef("数量", Gettype(Integer))
dtb.AddDef("金额", Gettype(Integer))
With e.Form.Controls("Table2").Table
.datasource = dtb.BuildDataSource
.allowedit = True
.AllowResizeRow = False
.DataTable.SysStyles("EmptyArea").BackColor = Color.Whitesmoke
.Grid.Styles.Normal.Border.Color = Color.Blue
.SetColVisibleWidth("产品|65|数量|40|金额40|")
.SetHeaderRowHeight(35)
End With
为什么出现错误,错误在哪里??请老师给予意见