ColumnBase.Width Property

Gets or sets the column width. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

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


public double Width { get; set; }

Property Value

Type Description

A Double value that specifies the column width, in pixels.


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

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 grid’s GridControl.AutoWidth property. To obtain the actual width of a column, use the ColumnBase.ActualWidth property.

To specify the column’s minimum width, use the ColumnBase.MinWidth property.

See Also