摘要:
首先,ComboBox一共需要绑定两套数据源。第一套是Text属性,当Text被更改后,Text值被推送给数据源;或者是,当数据源发生值改变,则值被现实到ComboBox的Text里。代码:DataTable table = .....;BindingSource bindingSource = new BindingSource();bindingSouce.DataSource = table;comboBox.DataBindings.Add("Text", bindingSource, "需要绑定的表的字段的名称");其次,ComboBox的下拉 阅读全文
posted @ 2013-02-02 23:40
xxxteam
阅读(1693)
评论(0)
推荐(0)