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); } }