码迷,mamicode.com
首页 > 其他好文 > 详细

checkedListBox的数据绑定

时间:2014-05-03 20:40:35      阅读:367      评论:0      收藏:0      [点我收藏+]

标签:checkedlistbox

string strq = "select Stru_chName,Stru_enName from T_StuRowName;";
SqlCommand command = new SqlCommand(strq, con);
SqlDataReader reader = command.ExecuteReader();
BindingSource bs = new BindingSource();
bs.DataSource = reader;
checkedListBox1.DataSource = bs;
checkedListBox1.ValueMember = "Stru_enName";
checkedListBox1.DisplayMember = "Stru_chName";


checkedListBox的数据绑定,布布扣,bubuko.com

checkedListBox的数据绑定

标签:checkedlistbox

原文地址:http://6839753.blog.51cto.com/6829753/1405704

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!