直接从数据源拖一个字段绑定bindingsource 为Prod_type
如:Products中的Products_type_id(存放的是成品类型表的ID)Prod_type.datasource=Products_type;//Products_type成品类型表
Prod_type.valueMember="id";//id
Prod_type.displayMember="cdesc";//类型名发现
Prod_type 中databindings属性中的
text 自动设置为 ProductsBindingSource.Products_type_id结果combobox Prod_type显示的是id ,而不是cdesc应好何设置呢
如:Products中的Products_type_id(存放的是成品类型表的ID)Prod_type.datasource=Products_type;//Products_type成品类型表
Prod_type.valueMember="id";//id
Prod_type.displayMember="cdesc";//类型名发现
Prod_type 中databindings属性中的
text 自动设置为 ProductsBindingSource.Products_type_id结果combobox Prod_type显示的是id ,而不是cdesc应好何设置呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货