'产线编号下拉框项目
Dim cmd As new SQLCommand
cmd.C
Dim dt As DataTable
cmd.CommandText = "S ELECT * From {erp_datamap} where map_type='产线编号'"
dt = cmd.ExecuteReader()
msgbox(dt.DataRows.count)
Dim cmb As WinForm.CheckedComboBox = e.Form.Controls("line_id")
cmb.DisplayMember = "map_text" '设置显示列
cmb.ValueMember = "map_value" '设置取值列
cmb.DataSource = "dt"
以上代码为何不能生成下拉框?
想实现以上的效果,有没有其它方法。
比如,我已将内容放在字典( 产线编号|产线名称),
想在下拉框里实现 产线编号|产线名称