The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

[XtraSerializableProperty]
public bool AutoWidth { get; set; }
<XtraSerializableProperty>
Public Property AutoWidth As Boolean

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