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.MinWidth Property

Gets or sets the band’s minimum allowed width.

Namespace: DevExpress.XtraGrid.Views.BandedGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DefaultValue(10)]
[DXCategory("Behavior")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public virtual int MinWidth { get; set; }

#Property Value

Type Default Description
Int32 10

An integer value specifying the band’s minimum width in pixels.

#Remarks

The GridBand.Width property cannot be set to a value less than specified by the MinWidth property. Thus, the band’s width cannot be set less than the specified minimum by end-users or via code.

Note that the band’s minimum width also depends on its child bands’ and columns’ minimum allowed widths.

See Also