DynamicControl.NullDisplayText DynamicControl.NullDisplayText DynamicControl.NullDisplayText DynamicControl.NullDisplayText Property

定義

取得或設定資料欄位值為 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. 您可以藉由設定NullDisplayText屬性來指定自訂標題, 以顯示具有 null 值的欄位。You can specify a custom caption to display for 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 ("").

適用於

另請參閱