Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColumnDefinition.Width Property

Gets or sets the column width, in pixels or as a percentage, according to the ColumnDefinition.SizeType.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[XtraSerializableProperty]
public double Width { get; set; }

#Property Value

Type Description
Double

A value that specifies the column width.

#Remarks

The column width can be in absolute or relative values depending on the ColumnDefinition.SizeType property. If this property is set to AutoSize, the column width is automatically calculated to fit its contents and the Width property is ignored.

To learn about the specifics of calculating the size of columns/rows of the Percent type, see ColumnDefinition.SizeType.

See Also