corelibraries-devexpress-dot-xtrapivotgrid-f307e98d.md
Contains values that specify which elements are taken into account when calculating the best-fit width for columns.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.PivotGrid.v25.2.Core.dll
NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
[Flags]
public enum PivotGridBestFitMode
<Flags>
Public Enum PivotGridBestFitMode
| 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.
|
The following properties accept/return PivotGridBestFitMode values:
Use the PivotGridOptionsBehaviorBase.BestFitMode property to specify which elements are taken into account when calculating the best-fit width for columns.
See Also