System.Web.UI.WebControls Namespace DataControlField Class
.NET Framework version 2.0
Sets or retrieves a value that indicates whether a DataControlField is rendered when its parent control is in insert mode.
Inline |
<asp:datacontrolfield insertvisible = [ true | false ]... > |
Script |
DataControlField.InsertVisible = [ true | false ] |
This property accepts or returns only a boolean value: true if the field is visible when its parent control is in insert mode; otherwise false. Default value is true.
Use the InsertVisible property to show or hide a DataControlField in a data-bound control when its parent data-bound control is in insert mode.
A data-bound control is in insert mode when the state of the current display row is DataControlRowState.Insert.
The DetailsView control checks the value of this property before it renders a set of fields. If the InsertVisible property is false, the Visible property of the DetailsViewRow object is set to false.
DataControlField Members Visible