Skip to main content
A newer version of this page is available. .
Tab

LayoutItemBase.Visible Property

Gets or sets a value specifying the visibility of the current layout item or group.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

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

Property Value

Type Default Description
Boolean **true**

true if the layout item or group is visible; otherwise false.

Remarks

Use the Visible property of layout items or groups to dynamically change the content of the ASPxFormLayout control. This property enables you to hide and display specific layout items when certain conditions are met.

Note that the Visible and LayoutItemBase.VisibleIndex properties are interdependent. A false value assigned to the Visible property sets the LayoutItemBase.VisibleIndex property to -1. Setting the Visible property back to true makes the LayoutItemBase.VisibleIndex property set to the non-negative value it has previously.

Note

If an item’s server Visible property is set to false, the layout item is not rendered on the web page, so it can’t be manipulated on the client side.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Visible property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also