I have this property in Model class
[Required]
[StringLength(15)]
[DisplayName("Name")]
public string NameProp { get; set; }
When I edit the value of the NameProp cell and try to finish editing with empty value, it shows error " The NameProp field is required", which is expected and correct but I do not want it to show Property name but the name provided in DisplayName's Value.
Is there any way to do that ?
Edit : Got it
Using
[Display(Name = "Name")]