Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridBand.VisibleWidth Property

Gets the current band width.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual int VisibleWidth { get; }

#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