PivotGridField.BestFitMode Property
Gets or sets how the optimal width required for a column (or row), to completely display its contents is calculated. This is a dependency property.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
#Declaration
public BestFitMode BestFitMode { get; set; }
#Property Value
Type | Description |
---|---|
Best |
A Best |
Available values:
Name | Description |
---|---|
Default | If this mode is assigned to the Column |
All |
The column width is calculated based on text of all cells within this column. |
Visible |
The column width is calculated based on the values in the currently visible cells. |
Distinct |
The column width is calculated based on all distinct values in the underlying datasource. |
Smart | In this mode, the column width is calculated as Best |
#Remarks
To learn more, see Best Fit.