Skip to main content
All docs
V25.1
  • DataGridView.BestFitMode Property

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

    Namespace: DevExpress.Maui.DataGrid

    Assembly: DevExpress.Maui.DataGrid.dll

    NuGet Package: DevExpress.Maui.DataGrid

    Declaration

    public BestFitMode BestFitMode { get; set; }

    Property Value

    Type Default Description
    BestFitMode All

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

    Available values:

    Name Description
    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