我想绑定ComboBox [英] I want to Bind ComboBox

查看:77
本文介绍了我想绑定ComboBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我有4个组合框

namly

1)ComboInModel

2)ComboInSerial

3)ComboOutModel

4)ComboOutSerial



现在我想将这个Comboboxes与数据库数据绑定

i在datable表中有数据如下所示



Here i have 4 comboboxes
namly
1) ComboInModel
2) ComboInSerial
3) ComboOutModel
4) ComboOutSerial

now i want to Bind this Comboboxes with database data
i have data in datable table like as follows

 InModel | InSerial | OutModel | OutSerial
-------------------------------------------
Desktop1 | T01589   | CPU1     | E07897    
-------------------------------------------
Desktop2 | T08956   | CPU2     | E01589
-------------------------------------------



i希望用以上数据绑定4个以上的组合框并且我想显示




i want to bind above 4 comboboxes with above data and i want to show

in comboInModel Desktop1 & Desktop2
   comboInSerial T01589 & T08956
   comboOutModel CPU1 & CPU2
   comboOutSerial  E07897 &  E01589

推荐答案

这篇关于我想绑定ComboBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆