Skip to main content

GridColumn.MaxWidth Property

Gets or sets the column’s maximum width.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid

Declaration

[DefaultValue(0)]
[DXCategory("Appearance")]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
[XtraSerializablePropertyId(3)]
public virtual int MaxWidth { get; set; }

Property Value

Type Default Description
Int32 0

An integer value that specifies the column’s maximum width.

Remarks

This property is supported in the GridView Views. It’s not supported in other Views.

colAddress.MaxWidth = 200;
colAddress.MinWidth = 100;
colAddress.Width = 150;
See Also