/// <summary> ///ProjectPriority 的摘要说明 /// </summary> public enum ProjectPriority { 极低 = -2, 低 = -1, 中 = 0, 高 = 1, 极高 = 2, }
使用
this.rblProjectPriority.DataSource = Enum.GetValues(typeof(ProjectPriority)); //this.rblProjectPriority.DataTextField = "EnumString"; //this.rblProjectPriority.DataValueField = "Enum"; this.rblProjectPriority.DataBind(); this.rblProjectPriority.SelectedIndex = 0;