Skip to main content

TcxCustomPivotGrid.ApplyBestFit Method

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

Declaration

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