A newer version of this page is available. Switch to the current version.

GridBand.VisibleWidth Property

Gets the current band width.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v19.2.dll


public virtual int VisibleWidth { get; }

Property Value

Type Description

An integer value representing the current band width in pixels.


Initially, the width of bands is specified by their GridBand.Width property. However, when the auto width feature is applied (the GridOptionsView.ColumnAutoWidth option is enabled), this property value stays constant while band width is changed. This allows you to restore the initial widths of bands when disabling the GridOptionsView.ColumnAutoWidth option.

The actual width of a band can be obtained using the VisibleWidth property. When the auto width feature is disabled, VisibleWidth and GridBand.Width properties return the same value.

See Also