TreeListBand.Width Property

Gets or sets the band’s width.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v21.2.dll


public int Width { get; set; }

Property Value

Type Default Description


A value that specifies the band’s width, in pixels.


The Width property cannot be set to value less than the TreeListBand.MinWidth property’s value.

Bands can contain child bands and columns, whose width is specified by their own Width property. If you customize the width of the band’s child band/column, this leads to re-calculation of the parent band width (as sum of child band/column widths). Changing the band width, in turn, has an effect on widths of its child bands/columns.

The actual band width may not match the Width property’s value, if the TreeListOptionsView.AutoWidth option is enabled. In this instance, use the TreeListBand.VisibleWidth property to obtain the actual band’s width.

See Also