Back to Devexpress

PivotGridOptionsBehaviorBase.BestFitMode Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsbehaviorbase-70ece064.md

latest2.8 KB
Original Source

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.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(PivotGridBestFitMode.Default)]
public PivotGridBestFitMode BestFitMode { get; set; }
vb
<DefaultValue(PivotGridBestFitMode.Default)>
Public Property BestFitMode As PivotGridBestFitMode

Property Value

TypeDefaultDescription
PivotGridBestFitModeDefault

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

|

Available values:

NameDescription
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.

|

Remarks

To learn more, see Best Fit.

See Also

Best Fit

PivotGridOptionsBehaviorBase Class

PivotGridOptionsBehaviorBase Members

DevExpress.XtraPivotGrid Namespace