DataView dv=db.SqlDataView("select mc,bm from bmk where lb='A'");
this.comboBox1.DataSource=dv;
this.comboBox1.DisplayMember="mc";
this.comboBox1.ValueMember="bm";
我怎么取出来的值是"bm" 而不是001 002 003呀
...全文
7884打赏收藏
怎么取comboBox的ValueMember里面的值
DataView dv=db.SqlDataView("select mc,bm from bmk where lb='A'"); this.comboBox1.DataSource=dv; this.comboBox1.DisplayMember="mc"; this.comboBox1.ValueMember="bm"; 我怎么取出来的值是"bm" 而不是001 002 003呀