Devexpress----CheckBoxListEdit

    技术2022-05-19  18

                foreach (DataRow dr in SysEnum.Inst.CustomerPropertyEnumeration.Rows)                {                    if (dr["Name"].ToString().Trim() != "所有客户")                    {                        CheckedListBoxItem item = new CheckedListBoxItem();                        item.Value = (int)dr["ID"];                        item.Description = (string)dr["Name"];                        //this.txtCustomerAtt.Properties.Items.Add(new KeyValue<int, string>((int)dr["ID"], (string)dr["Name"]));                        this.txtCustomerAtt.Properties.Items.Add(item);                    }                }


    最新回复(0)