GridBand.VisibleWidth Property

Gets the current band width.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[Browsable(false)]
public virtual int VisibleWidth { get; }
<Browsable(False)>
Public Overridable ReadOnly Property VisibleWidth As Integer

Property Value

Type Description
Int32

An integer value representing the current band width in pixels.

Remarks

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