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

TcxCustomTreeList.ApplyBestFit Method

In This Article

Horizontally resizes the tree list, so that contents fit cells.

#Declaration

Delphi
procedure ApplyBestFit;

#Remarks

Call the ApplyBestFit method if due to sizing operations the contents have been clipped. This method iterates through the tree list’s visible bands and calls their ApplyBestFit method.

To prohibit column sizing for end-users, set the tree list’s OptionsCustomizing.ColumnHorzSizing property to False. To prohibit sizing of a particular column, set the column’s Options.Sizing property to False.

To limit a column’s width to a certain value when applying Best Fit to this column, use the BestFitMaxWidth property. To adjust the columns, use the AdjustColumnsWidth method.

See Also