MetaColumn.ApplyFormatInEditMode 屬性

定義

取得值,這個值表示當資料繫結控制項 (其中含有 DataFormatString 物件所表示的資料欄位) 處於編輯模式時,MetaColumn 屬性指定的格式化字串是否套用至欄位值。

public:
 property bool ApplyFormatInEditMode { bool get(); };
public bool ApplyFormatInEditMode { get; }
member this.ApplyFormatInEditMode : bool
Public ReadOnly Property ApplyFormatInEditMode As Boolean

屬性值

Boolean

如果當資料繫結控制項 (其中含有 DataFormatString 物件所表示的資料欄位) 處於編輯模式時 MetaColumn 屬性指定的格式化字串套用至欄位值則為 true,否則為 false

實作

備註

ApplyFormatInEditMode屬性會驗證屬性 DisplayFormatAttribute 是否套用至資料欄位,並抓取屬性的值 DisplayFormatAttribute.ApplyFormatInEditMode 。 如果 DisplayFormatAttribute 找不到屬性,此屬性會驗證是否 DataTypeAttribute 已套用屬性來取出格式資訊。

適用於

另請參閱