亲善的朋友们,
I got to know how we can make two checkboxes or checkboxes inside a checkbox list mutually exclusive. However my question is little different from that, Hope to get some help from stack overflow,
我有两个核对箱清单,如下和数据集表所示,我正在获得检查箱值,
检查局Boxlist1 - 检查箱
if (IsDataSetNotEmpty(ds))
{
CheckBox_selectColumns.Items.Clear();
foreach (DataRow row in ds.Tables[0].Rows)
{
CheckBox_selectColumns.Items.Add(row[0].ToString());
}
}
核对表
if (IsDataSetNotEmpty(ds))
{
Checkbox_selectFields.Items.Clear();
foreach (DataRow row in ds.Tables[1].Rows)
{
CheckBox_selectColumns.Items.Add(row[0].ToString());
}
}
I will get following checkboxes in each lists.
检查箱:Employee ID, 第一名称,最后名称
Checkbox_selectFields : manager ID, Manager FName, Manager LName
如果有的话,我可以把这两个检查箱相互排斥,即如果我从第一个清单中选择一个或一个以上的检查箱,我就不应从第二个清单中选择任何检查箱,反之亦然。
Thank you...