Dim rgd As WinForm.RecordGrid = e.Form.Controls("RecordGrid1")
rgd.Columns = "单位名称|品名|底价|开票价|税率|收款人户名|收款人账号|收款人银行|备注|电话号码"
e.Form.Controls("RecordGrid1").basecontrol.VisualStyle = 4
Dim bctr = e.Form.Controls("RecordGrid1").BaseControl
bctr.AutoSizeRows
rgd.Table = Tables("表1") \'指定绑定表
rgd.Build() \'重新生成记录窗