BaseColumn.Width Property
Gets or sets the column's width. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.Core.dll
#Declaration
[XtraSerializableProperty(2147483646)]
[GridUIProperty]
[TypeConverter(typeof(LengthConverter))]
public double Width { get; set; }
#Property Value
Type | Description |
---|---|
Double | A Double value that specifies the column's width, in pixels. |
#Remarks
If the automatic column width calculation is disabled, a column's width is specified by its Width property. If the total columns' width exceeds the grid's width, a horizontal scrollbar is displayed, allowing an end-user to scroll grid columns.
Column widths can be changed automatically, so that the total columns' width matches the grid's 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 TableView.AutoWidth property. To obtain the actual width of columns, use their BaseColumn.ActualWidth property.
To specify the column's minimum width, use the BaseColumn.MinWidth property.
To learn more, see Columns Layout and Width.