Dim cmd As new sqlcommandcmd.commandtext="select 第一列,第二列 from {表A}"Dim lsdt As DataTable=cmd.ExecuteReader()
e.Form.controls("table1").Table.datasource=lsdt
Dim cmb As WinForm.checkedComboBoxcmb = e.form.Controls("CCB1")cmb.DisplayMember = "第二列" '设置显示列cmb.ValueMember = "第一列" '设置取值列cmb.DataSource = e.Form.controls("table1").Table.DataTable.name '列表项目来自于客户表