Skip to main content

GridColumnWidth.UnitType Property

Gets a value that specifies how the GridControl calculates a column’s width.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public GridColumnUnitType UnitType { get; }

Property Value

Type Description
GridColumnUnitType

A value that specifies how the GridControl calculates a column’s width.

Available values:

Name Description
Pixel

The GridControl sizes the column based on an absolute value in pixels.

Star

The GridControl sizes the column based on a weighted proportion of available space.

Auto

The GridControl sizes the column based on the cell content.

See Also