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

TcxTreeListBand.ApplyBestFit Method

Adjusts the band width to display column content in full.

#Declaration

Delphi
procedure ApplyBestFit;

#Remarks

Call the ApplyBestFit procedure to adjust the widths of all visible columns to display their content in full. The ApplyBestFit procedure iterates through all visible columns of the band and calls their ApplyBestFit procedures.

To limit the maximum width of a column when the ApplyBestFit procedure adjusts its size, use the column’s BestFitMaxWidth property.

#End-User Functionality

Users can double-click the right border of a band header to adjust the widths of all columns according to their content if the Options.Sizing property and the Tree List control’s OptionsCustomizing.BandHorzSizing properties are set to True.

See Also