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

TreeListBand.MinWidth Property

Gets or sets the band’s minimum allowed width.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(20)]
[DXCategory("Layout")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public int MinWidth { get; set; }

#Property Value

Type Default Description
Int32 20

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

#Remarks

The TreeListBand.Width value cannot be less than the MinWidth value. If the TreeListOptionsView.AutoWidth option is enabled, the band width is calculated automatically. In this instance, to obtain the actual band’s width, use the TreeListBand.VisibleWidth property.

Bands can contain child bands and columns, whose minimum width is specified by their own MinWidth property. Thus, the band’s minimum width depends on its child bands’ and columns’ minimum width constraints.

See Also