The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRPivotGrid.BestFit(XRPivotGridField) Method

Resizes the columns which correspond to the specified field 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(
    XRPivotGridField field
)
Public Sub BestFit(
    field As XRPivotGridField
)

Parameters

Name Type Description
field XRPivotGridField

An XRPivotGridField object which identifies the columns to which the best width feature should be applied.

Remarks

This method can be applied to a data field or row field. It resizes the column(s) that correspond to the specified field, so that the column's contents are displayed completely. The BestFit method takes this into account:

  • the field's caption specified by the PivotGridFieldBase.Caption property;
  • field values of the field;
  • summary values displayed within the column(s) that correspond to the specified field (only for data fields).
See Also