你需要额外处理一下,先查询到bbb列的值,然后生成一个字符串 xxx|xxxx|xxxx 然后赋值给CheckedComboBox的combolist
Dim cmd As New SQLCommand
Dim dt As DataTable
cmd.Con n ection Name = "xxx"
cmd.CommandText = "SELECT bbb From {ccc}"
dt = cmd.ExecuteReader()
Dim ls As String = ""
For Each dr As DataRow In dt.DataRows
ls += dr("bbb") & "|"
Next
Dim cbx As WinForm.CheckedComboBox = e.Form.Controls("CheckedComboBox1")
cbx.ComboList = ls.Trim("|")
[此贴子已经被作者于2014-3-2 19:55:19编辑过]