asp.net.ph

DataControlField.Visible Property

System.Web.UI.WebControls Namespace   DataControlField Class


.NET Framework version 2.0

Sets or retrieves a value that indicates whether a DataControlField is rendered.

Syntax


Inline <asp:datacontrolfield visible = [ true | false ]... >
Script DataControlField.Visible = [ true | false ]

Property Value

This property accepts or returns only a boolean value: true if the field is rendered; otherwise false. Default value is true.

Remarks

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.

See Also

DataControlField Members   InsertVisible Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note