System.ComponentModel.DataAnnotations.DisplayFormatAttribute public class DisplayFormatAttribute : Attribute Documentation Code public bool ApplyFormatInEditMode { get; set; } public bool ConvertEmptyStringToNull { get; set; } public string DataFormatString { get; set; } public bool HtmlEncode { get; set; } public string NullDisplayText { get; set; } public DisplayFormatAttribute()