62,041
社区成员
发帖
与我相关
我的任务
分享
string[] str = { "a", "c", "j", "h", "r" };
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
for (int j = 0; j < str.Length; j++)
{
if (str[j] == CheckBoxList1.Items[i].Value)
{
CheckBoxList1.Items[i].Selected = true;
}
}
}