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

DropList for 循环添加绑定的项与值

时间:2017-12-12 12:17:52      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:tostring   绑定   设定   ring   post   ems   list   and   逗号   

for (int i = 0; i < _RecordList.Length; i++)

  this.Texx_XueXiao.Items.Add(new ListItem(_RecordList[i]["J_Name"].ToString()  , _RecordList[i]["J_KaoDianDaiMa"].ToString())); 
}

 

使用 new listitem 方法添加项与值。逗号前是显示的内容,逗号后面是设定的值

 
 
 

DropList for 循环添加绑定的项与值

标签:tostring   绑定   设定   ring   post   ems   list   and   逗号   

原文地址:http://www.cnblogs.com/zgjin/p/8026805.html

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