Possible Duplicate:
MVC3 Razor DropDownListFor Enums
I'm a newbie in ASP.NET MVC3 (REALLY NEW). I want to create a Drop Down List Box for four year levels of students. I have: "First", "Second", "Third", and "Fourth". Now for that in model I have created an Enum named YLevels as follows:
  public enum YLevels
    {
      First =1,
      Second,
      Third ,
      Fourth
    }
As a whole, my model class StudentMT contains:
 public StudentMT()
    {
        Remarks = string.Empty;
    }
    public int Id { get; set; }
    [Required(ErrorMessage = "First Name is required.")]
    [StringLength(30, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 3)]
    [Display(Name= "First Name")]
    public string FName { get; set; }
    [Required(ErrorMessage = "Last Name is required.")]
    [StringLength(30, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 3)]
    [Display(Name = "Last Name")]
    public string LName { get; set; }
    public string Gender { get; set; }
    [Display(Name="Year Level")]
    public int YLevel { get; set; }
    public string Remarks { get; set; }
    public enum YLevels
    {
        First =1,
        Second,
        Third ,
        Fourth
    }
  }
then in my view, i want to use an EditorFor():
    <div class="editor-label">
        @Html.LabelFor(model => model.YLevel)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.YLevel)
        @Html.ValidationMessageFor(model => model.YLevel)<br/> 
    </div>
how can i define a property that would use this enum? How can I display the dropdown list using the EditorFor()? Please suggest what I can possibly do.
Thank you in advance!