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

GridBand.Width Property

Gets or sets band width.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v19.1.dll


public virtual int Width { get; set; }

Property Value

Type Default Description


An integer value specifying band width in pixels.


The Width property cannot be set to values less than that specified by the GridBand.MinWidth property. Note also that bands can contain child bands and columns. Each band and column can also specify its own minimum width using the GridBand.MinWidth and GridColumn.MinWidth properties. Thus, a band cannot be resized to a width that exceeds these constraints.

Note: if the column auto-width mode is activated (the View’s GridOptionsView.ColumnAutoWidth option is enabled), actual band width may not match the Width property value. In this instance, use the GridBand.VisibleWidth property for the actual band’s width.

See Also