Cannot bind to the new display member
摘要:代码:cb_abc.DataSource = oper.getDataSet(); cb_abc.DisplayMember = "name"; cb_abc.ValueMember = "value";cb_abc.SelectedIndex = 0;在执行上述代码时,ComboBox绑定报错 异常:Cannot bind to the new display member原因: 将一个DataSet对象赋给了一个combobox数据源,combobox在DataSet中找不到名为name或value的数据列。解决办法:将DataSet改为DataTa
阅读全文
posted @ 2012-02-28 16:06
浙公网安备 33010602011771号