Skip to main content
A newer version of this page is available. .

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

public void BestFit()

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:

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.

See Also