关于ComboBox的问题
this.cbAssembly.DataSource = ds.Tables[0];
this.cbAssembly.DisplayMember = "Assembly ";
将ComboBox的DataSourece设计为某个DataTable,然后让它显示 "Assembly "这一列,现在这个表中有两列。分别为:
AssemblyID Assembly
现在我显示了Assembly,如果通何ComboBox选中的Assembly,来得到这个Assembly对应的AssemblyID?
------解决方案--------------------comboBox1.DisplayMember = "fgsname ";
comboBox1.ValueMember = "fgsnum ";