Back to Devexpress

GridColumn.BestFitMode Property

maui-devexpress-dot-maui-dot-datagrid-dot-gridcolumn-816ee7d0.md

latest1.4 KB
Original Source

GridColumn.BestFitMode Property

Gets or sets the mode used to calculate the best-fit width for the current column. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public BestFitMode? BestFitMode { get; set; }

Property Value

TypeDefaultDescription
Nullable<BestFitMode>null

The mode used to calculate the best-fit width for the current column.

|

Available values:

NameDescription
Cells

Adjusts the column width to fit the content of each cell.

| | Header |

Adjusts the column width to fit the content of the header.

| | All |

Adjusts the column width to fit both cell and header content.

|

Remarks

For more information, refer to the following section: Grid Column Best-Fit Width.

See Also

GridColumn Class

GridColumn Members

DevExpress.Maui.DataGrid Namespace