Back to Devexpress

GridBand.MinWidth Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-bandedgrid-dot-gridband-38d9ef91.md

latest2.1 KB
Original Source

GridBand.MinWidth Property

Gets or sets the band’s minimum allowed width.

Namespace : DevExpress.XtraGrid.Views.BandedGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(10)]
[DXCategory("Behavior")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
public virtual int MinWidth { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(10)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)>
Public Overridable Property MinWidth As Integer

Property Value

TypeDefaultDescription
Int3210

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

Width

GridColumn.MinWidth

AllowSize

GridBand Class

GridBand Members

DevExpress.XtraGrid.Views.BandedGrid Namespace