如何将数据表绑定到checkedlistbox?我尝试使用此代码,但数据源属性未初始化
CheckedListBox cb = new CheckedListBox();
checkedListBox1.DataBindings = dbFunctions.getTable("pr_fetchLocal'" + editypeId + "'");
((ListBox)cb).DataSource = dtfetchSub;
((ListBox)cb).DisplayMember = "name";
((ListBox)cb).ValueMember = "Id";
cb.Show();