GridBand.Visible Property

Gets or sets whether the band is visible.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(true)]
[XtraSerializableProperty]
[XtraSerializablePropertyId(3)]
public virtual bool Visible { get; set; }
<DXCategory("Appearance")>
<DefaultValue(True)>
<XtraSerializableProperty>
<XtraSerializablePropertyId(3)>
Public Overridable Property Visible As Boolean

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.

See Also