Class ColumnWidthMode
Defines the constants that specify how the columns are sized.
Inheritance
System.Object
    ColumnWidthMode
  Namespace: Syncfusion.UI.Xaml.Grids
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public sealed class ColumnWidthMode : EnumFields
Auto
The size is based on the contents of both the cells and the column header.
Declaration
public const ColumnWidthMode AutoField Value
| Type | 
|---|
| ColumnWidthMode | 
AutoLastColumnFill
The size is based on the contents of both the cells and the column header with last column auto fill. The column to be filled can be any column.
Declaration
public const ColumnWidthMode AutoLastColumnFillField Value
| Type | 
|---|
| ColumnWidthMode | 
AutoWithLastColumnFill
The size is based on the contents of both the cells and the column header with last column fill by default. The column to be filled can be any column.
Declaration
public const ColumnWidthMode AutoWithLastColumnFillField Value
| Type | 
|---|
| ColumnWidthMode | 
None
No sizing. The DefaultLineSize will be set for the columns.
Declaration
public const ColumnWidthMode NoneField Value
| Type | 
|---|
| ColumnWidthMode | 
SizeToCells
The size is based on the contents of the cells.
Declaration
public const ColumnWidthMode SizeToCellsField Value
| Type | 
|---|
| ColumnWidthMode | 
SizeToHeader
The size is based on the contents of the column header.
Declaration
public const ColumnWidthMode SizeToHeaderField Value
| Type | 
|---|
| ColumnWidthMode | 
Star
The size is a weighted proportion of available space.
Declaration
public const ColumnWidthMode StarField Value
| Type | 
|---|
| ColumnWidthMode |