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

GridBand.Visible Property

Gets or sets whether the band is visible.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(true)]
[XtraSerializableProperty]
[XtraSerializablePropertyId(3)]
public virtual bool Visible { get; set; }

Property Value

Type Default Description
Boolean **true**

true if the band is visible; otherwise, false.

Remarks

If the Visible property is set to true, the band may be visible within the View. The GridBand.VisibleIndex property specifies its visual position within the owning band.

If set to false, the band is not displayed within the View. In this case, its header is displayed within the Customization Form if the band’s OptionsBand.ShowInCustomizationForm option and the View’s BandedGridOptionsCustomization.ShowBandsInCustomizationForm options are enabled. Note that the hidden band’s child bands’ and columns’ headers are not displayed within the Customization Form.

Note that a band is invisible regardless of its GridBand.Visible property value if its parent band’s GridBand.Visible property is set to false. The GridBand.ReallyVisible property can be used to determine the band’s actual visibility.

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