Back to Devexpress

DataGridView.AutoBestFitColumns Property

maui-devexpress-dot-maui-dot-datagrid-dot-datagridview-74b735ef.md

latest1.3 KB
Original Source

DataGridView.AutoBestFitColumns Property

Gets or sets whether to calculate the column width based on the specified BestFitMode. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
public bool AutoBestFitColumns { get; set; }

Property Value

TypeDefaultDescription
BooleanFalse

true if the column width is calculated based on the specified BestFitMode; otherwise, false.

|

Remarks

The AutoBestFitColumns property does not affect the multi-row column layout.

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

See Also

DataGridView Class

DataGridView Members

DevExpress.Maui.DataGrid Namespace