C# 动态添加CheckedListBox的选项,并设置选项为 选中? 怎么做?

CheckBoxList clbox = new CheckBoxList();
clbox.Items.Add(new ListItem("text", "value"));
//选中新增加的项clbox.Items[clbox.Items.Count-1].Selected = true;

 

posted @ 2012-12-13 13:03  麦田HH  阅读(1109)  评论(0编辑  收藏  举报