Dev 配置checkedListBoxControl值

 #region 配置checkedListBoxControl值
        private void SetwItemValues(DevExpress.XtraEditors.CheckedListBoxControl checkedListBoxControl, String str)
        {
            for (int i = 0; i < checkedListBoxControl.Items.Count; i++)
            {
                if (checkedListBoxControl.Items[i].Value.ToString().Trim().Contains(str))
                {
                    checkedListBoxControl.SetItemChecked(i, true);
                    return;
                }
                else
                {
                    checkedListBoxControl.SetItemChecked(i, false);
                }
            }
        }
        #endregion

你可能感兴趣的:(DEV,C#)