MetaColumn.NullDisplayText Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the caption that is displayed for a field when the field's value is null.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public string NullDisplayText { get; }

Property Value

Type: System.String

The caption that is displayed for a field when the field's value is null.

The NullDisplayText property verifies if a DisplayFormatAttribute attribute is applied to the data field and retrieves the value of the DisplayFormatAttribute.NullDisplayText property. If a DisplayFormatAttribute attribute is not found, this property verifies if a DataTypeAttribute attribute is applied to retrieve formatting information.

.NET Framework
Available since 3.5
Return to top
Show: