PivotGridControl.BestFit(PivotGridField) Method
Resizes the columns and rows which correspond to the specified fields, to the minimum width and height required to completely display their contents.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
field | Pivot |
A Pivot |
#Remarks
When the PivotGridControl.RowTotalsLocation property is set to FieldRowTotalsLocation.Tree, calling the BestFit method for row fields has no effect. In this instance, to apply best fit to row fields, use another overload of this method, which takes the area parameter, and pass the FieldArea.RowArea value as this parameter.
NOTE
The Best Fit is available only after the Pivot
To learn more, see Best Fit.