Fork me on GitHub

绑定checkboxlist

04|06|07|08|

for (int i = 0; i < expert.CountryID.Split('|').Length; i++)
{
for (int j = 0; j < chkCountry.Items.Count; j++)
{
if (expert.CountryID.Split('|')[i] == chkCountry.Items[j].Value)
{
chkCountry.Items[j].Selected = true;
}
}
}

 

posted @ 2013-04-27 09:36  思考的大腿  阅读(126)  评论(0编辑  收藏  举报