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

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

C#
public bool AutoBestFitColumns { get; set; }

#Property Value

Type Default Description
Boolean False

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