摘要:
方法一:绑定enum TestEnum {zero=0,one=1,two=2}ComboBox cbo = new ComboBox(); cbo.DataSource = System.Enum.GetNames(typeof(TestEnum));TestEnum test = TestEnum .one; cbo.SelectedIndex = this.cbo.FindString(test.ToString());取值TestEnum testenum = (TestEnum)Enum.Parse(typeof(TestEnum) ,cbo.SelectedItem.ToStrin 阅读全文