摘要: 方法一:绑定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 阅读全文
posted @ 2010-06-18 17:55 litsword 阅读(6018) 评论(0) 推荐(1) 编辑