PivotGridOptionsBehaviorBase.BestFitMode Property

Gets or sets which visual elements are taken into account when calculating the optimal width for columns.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.2.Core.dll

Declaration

[DefaultValue(PivotGridBestFitMode.Default)]
public PivotGridBestFitMode BestFitMode { get; set; }

Property Value

Type Default Description
PivotGridBestFitMode

Default

A PivotGridBestFitMode enumeration member that specifies which visual elements are taken into account when calculating the optimal width for columns.

Available values:

Name Description
None

The best-fit functionality is disabled.

FieldValue

The contents of field values are taken into account when calculating the best-fit size.

FieldHeader

The contents of field headers are taken into account when calculating the best-fit size.

Cell

The contents of data cells are taken into account when calculating the best-fit size.

Default

This option is the combination of the PivotGridBestFitMode.FieldValue, PivotGridBestFitMode.FieldHeader and PivotGridBestFitMode.Cell options.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to BestFitMode
WinForms Controls PivotGridControl
.OptionsBehavior.BestFitMode
Reporting XRPivotGrid
.OptionsBehavior.BestFitMode
ASP.NET MVC Extensions MVCxPivotGrid
.OptionsBehavior.BestFitMode
PivotGridSettings
.OptionsBehavior.BestFitMode
ASP.NET Web Forms Controls ASPxPivotGrid
.OptionsBehavior.BestFitMode

Remarks

To learn more, see Best Fit.

See Also