DisplayFormatAttribute.NullDisplayText Property
Gets or sets the text to display for a member when the value of the member is null.
Namespace: System.ComponentModel.DataAnnotations
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
Property Value
Type: System.StringThe text to display for a member when the value of the member is null.
The following example shows how to apply the DisplayFormatAttribute attribute to a property named ListPrice that displays currency values and a property named Size that contains null or empty string values.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.