1. CheckBoxList 添加滚动条
添加加一个panel, 然后把CheckBoxList放到panel里面,再把panel滚动条(scollbars)属性设为auto, 如果显示超过panel的范围的话就自动添加滚动条
2. 和datatable绑定
CheckBoxList.DataSource = DataTable; CheckBoxList.DataTextField = "Name"; CheckBoxList.DataValueField = "ID"; CheckBoxList.DataBind();
..