System.Web.UI.WebControls Namespace DataControlField Class
.NET Framework version 2.0
Sets or retrieves a value that indicates whether a DataControlField is rendered.
Inline |
<asp:datacontrolfield visible = [ true | false ]... > |
Script |
DataControlField.Visible = [ true | false ] |
This property accepts or returns only a boolean value: true if the field is rendered; otherwise false. Default value is true.
Use the Visible property to show or hide a DataControlField in a data-bound control.
If the Visible property is false, the data values are not part of the data that is returned to the client, and the data control field is not rendered. Note, though, that data from the primary key fields ( fields that are specified in the DataKeyNames property of the data-bound control ) are always returned, even if the Visible property for these fields is set to false.
DataControlField Members InsertVisible