List<KeyValuePair<object, string>> dit = new List<KeyValuePair<object, string>>();
            dit.Add(new KeyValuePair<object, string>(1, "测试操作类型"));
            dit.Add(new KeyValuePair<object, string>(2, "操作类型"));
           
            this.cbxMethod.DataSource = dit;
            this.cbxMethod.DisplayMember = "Value";
            this.cbxMethod.ValueMember = "Key";

相关文章: