我已经通过将复选框的选中值插入到不同的列中,将它们插入到表中,就像我想从表中检索值以检查到复选框一样,这是通过错误
“索引超出范围”
有关的代码如下
foreach (DataRow Recpt in ds.Tables[5].Rows)
{
for (var i = 0; i <= chkPrdRecipients.Items.Count-1; i++)
{
var Recipients = Recpt["RecipientId"].ToString();
Array arrRecipients = Recipients.Split(',');
for (var j = 0; j <= Recipients.Length - 1; j++)
{
if (arrRecipients.GetValue(j).ToString().Trim().ToLower() ==
chkPrdRecipients.Items[i].Value.Trim().ToLower())
{
chkPrdRecipients.Items[i].Selected = true;
}
}
}
}
请找到解决方案....