Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomPivotGrid.ApplyBestFit Method

In This Article

Resizes the headers and data cells that correspond to all the visible data fields and row fields to completely display their contents.

#Declaration

Delphi
procedure ApplyBestFit;

#Remarks

This method resizes the headers and data cells that correspond to the visible data fields and row fields so that their contents are completely displayed. This method sequentially calls the ApplyBestFit method for each visible field. See the corresponding topic to learn about the information that is taken into account when resizing column headers and row headers.

End-users are able to adjust the width of a field’s header and data cells in this manner by double-clicking the right edge of the corresponding column header or row header provided that the field’s Options.Sizing property is set to True. Note that this property has no effect when the ApplyBestFit method is called in code.

See Also