ComboBoxEdit combo = new ComboBoxEdit();
var coll = combo.Properties.Items;
            coll.BeginUpdate();
            try
            {
                var list ;// list集合 
                var item= new ComboBoxItem
                    {
                        Key = "-1",
                        Value = "请选择"
                    };
                    coll.Add(item);
                    coll.AddRange(list);  //批量添加
                    cmb.SelectedIndex = 0;  //默认选择项
            }
            
            finally
            {
                coll.EndUpdate();
            }

 

相关文章:

  • 2021-07-14
  • 2022-12-23
  • 2021-10-07
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2021-12-06
  • 2022-02-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案