DataControlField.InsertVisible 屬性


取得值,指示 DataControlField 物件在其父資料繫結控制項處於插入模式時是否可見。Gets a value indicating whether the DataControlField object is visible when its parent data-bound control is in insert mode.

 virtual property bool InsertVisible { bool get(); void set(bool value); };
public virtual bool InsertVisible { get; set; }
member this.InsertVisible : bool with get, set
Public Overridable Property InsertVisible As Boolean



如果欄位在其父資料繫結控制項以插入模式呈現時可見,則為 true,否則為 falsetrue if the field is visible when its parent data-bound control is rendered in insert mode; otherwise, false. 預設值是 trueThe default value is true.


當目前顯示資料列的狀態是時,資料繫結控制項處於插入模式 DataControlRowState.InsertA data-bound control is in insert mode when the state of the current display row is DataControlRowState.Insert.

DetailsView控制項會先檢查這個屬性的值,然後再呈現一組欄位。The DetailsView control checks the value of this property before it renders a set of fields. 如果 InsertVisible 屬性為 false ,則物件的 Visible 屬性 DetailsViewRow 會設定為 falseIf the InsertVisible property is false, the Visible property of the DetailsViewRow object is set to false.

屬性的值 InsertVisible 會儲存在 view 狀態中。The value of the InsertVisible property is stored in view state.