private void checkedComboBoxEdit1_CustomDisplayText(object sender, DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs e)
        {
            string items = checkedComboBoxEdit1.Properties.GetCheckedItems().ToString();
            List<string> checkItems = new List<string>();

            if (items.Contains(","))
            {
                string[] itemValue = items.Split(',');
                foreach (string i in itemValue)
                {
                    checkItems.Add(i);
                }
            }

            if (checkItems != null)
            {
                if (checkItems.Count() == checkedComboBoxEdit1.Properties.Items.Count)
                {
                    e.DisplayText = "ALL";
                }
            }
        }

效果如下:

修改前:CheckedComboBoxEdit 全选之后,修改文本框所显示的内容

修改后: CheckedComboBoxEdit 全选之后,修改文本框所显示的内容CheckedComboBoxEdit 全选之后,修改文本框所显示的内容

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案