CheckedComboBoxEdit 修改默认选中项

cklstStatisticalTime :CheckedComboBoxEdit 控件名
_statisticalTime :选中项内容
//修改默认选中
foreach (CheckedListBoxItem item in cklstStatisticalTime.Properties.Items)
{
    if (item.Description.ToString() == _statisticalTime)
    {
        item.CheckState = CheckState.Checked;
    }
    else
    {
        item.CheckState = CheckState.Unchecked;
    }
}

 

posted @ 2017-10-30 14:39  丨QAQ丨  阅读(3766)  评论(0编辑  收藏  举报