DisplayFormatAttribute Properties

 

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

NameDescription
System_CAPS_pubpropertyApplyFormatInEditMode

Gets or sets a value that indicates whether the formatting string that is specified by the DataFormatString property is applied to the field value when the data field is in edit mode.

System_CAPS_pubpropertyConvertEmptyStringToNull

Gets or sets a value that indicates whether empty string values ("") are automatically converted to null when the data field is updated in the data source.

System_CAPS_pubpropertyDataFormatString

Gets or sets the display format for the field value.

System_CAPS_pubpropertyHtmlEncode

Gets or sets a value that indicates whether the field should be HTML-encoded.

System_CAPS_pubpropertyNullDisplayText

Gets or sets the text that is displayed for a field when the field's value is null.

System_CAPS_pubpropertyTypeId

When implemented in a derived class, gets a unique identifier for this Attribute.(Inherited from Attribute.)

Return to top
Show: