DynamicField.NullDisplayText 属性
定义
获取或设置当字段值为 null 时,为数据字段显示的标题。Gets or sets the caption that is displayed for a data field when the field value is null.
public:
property System::String ^ NullDisplayText { System::String ^ get(); void set(System::String ^ value); };
public string NullDisplayText { get; set; }
member this.NullDisplayText : string with get, set
Public Property NullDisplayText As String
属性值
当字段值为 null 时,为数据字段显示的标题。The caption that is displayed for a data field when the field value is null. 默认值为空字符串 (""),表示尚未设置此属性。The default is an empty string (""), which indicates that this property is not set.
注解
有时,字段值在数据源中存储为 null。Sometimes a field value is stored as null in the data source. 通过设置属性,可以为具有 null 值的数据字段指定要显示的自定义标题 NullDisplayText 。You can specify a custom caption to display for data fields that have a null value by setting the NullDisplayText property. 如果未设置此属性,则 null 字段值显示为空字符串 ( "" ) 。If this property is not set, null field values are displayed as empty strings ("").