XRPivotGrid.BestFit() Method
Resizes the columns which correspond to the data fields and row fields to the minimum width required to completely display the column’s contents.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v18.2.dll
Declaration
Remarks
This method resizes the column(s) that correspond to the data fields and row fields so that the column’s contents are completely displayed. The BestFit method takes this into account:
- a field’s caption specified by the PivotGridFieldBase.Caption property;
- field values of the field;
- summary values displayed within the columns that correspond to the data fields.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BestFit() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.