System.Web.UI.WebControls.DataControlField.Visible Property

Gets or sets a value indicating whether a data control field is rendered.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool Visible { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the DataControlField.Visible property to show or hide System.Web.UI.WebControls.DataControlField objects in a data-bound control.

If the the DataControlField.Visible property is false, the data values are not displayed and do not make a round-trip to the client. If you want to round-trip the data for a field that is not visible, add the field name to the DataKeyNames property of the data-bound control.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0