Foxtable(狐表)用户栏目专家坐堂 → [求助]如何让SQL查询值显示在dropdownbox控件里面


  共有2473人关注过本帖树形打印复制链接

主题:[求助]如何让SQL查询值显示在dropdownbox控件里面

帅哥哟,离线,有人找我吗?
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251060 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2015/8/20 11:43:00 [显示全部帖子]

 参考:

1、

http://www.foxtable.com/help/topics/2910.htm

 

2、

http://www.foxtable.com/help/topics/2048.htm

 

dim a as string

dim b as new sqlcommand
b.commandtext="select bbh03 fro m bbh1 where lx=1"
Dim dt As DataTable = b.ExecuteReader()

e.form.Controls("ComboBox1").Combolist = dt.GetComboListString("bbh03")


 回到顶部