Skip to main content

GridControl.AutoWidth Property

Gets or sets whether column widths are automatically changed so that the total column width matches the grid width.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

[XtraSerializableProperty]
public bool AutoWidth { get; set; }

Property Value

Type Description
Boolean

true to enable the column auto width feature; otherwise, false. The default is false.

Remarks

Column widths can be changed automatically, so that the total column width matches the grid width. In this instance, changing the width of one column automatically changes the widths of other columns. This behavior is controlled by the view’s AutoWidth property. To obtain the actual width of a column, use the ColumnBase.ActualWidth property.

If the automatic column width calculation is disabled, a column’s width is specified by its ColumnBase.Width property. If the total column width exceeds the grid width, a horizontal scrollbar is displayed, allowing an end-user to scroll grid columns.

See Also