GridColumn.MaxWidth Property

Gets or sets the column's maximum width.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(0)]
[XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)]
[XtraSerializablePropertyId(3)]
public virtual int MaxWidth { get; set; }
<DXCategory("Appearance")>
<DefaultValue(0)>
<XtraSerializableProperty(XtraSerializationFlags.AutoScaleX)>
<XtraSerializablePropertyId(3)>
Public Overridable Property MaxWidth As Integer

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