title: How to show Display Name for foreign key fields in ASP.NET MVC
body: <p>I've seen many similar questions, but none seem to have a direct answer.
  When I attempt to add a Display(Name) attribute to a foreign key field, the Display Name isn't shown on the Create, Edit, Delete and Details form.
  I tried putting the attribute on the navigation property as well:</p>
  
  <pre><code>[Display(Name="Gender")]
  public virtual Gender Gender {get; set;}
  </code></pre>
  
  <p>but that didn't work either.</p>
  
  <pre><code>public class Person
  {
      public int ID {get; set;}
      public string FirstName {get; set;}
      public string LastName {get; set;}
      [Display(Name="Gender")]
      public int GenderID {get; set;}
  
      public virtual Gender Gender {get; set;}
  }
  
  
  public class Gender
  {
      public int ID {get; set;}
      public string GenderName {get; set;}
  
      public virtual ICollection&lt;Person&gt; People {get; set;}       
  }
  </code></pre>