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.AdjustColumnsWidth Method

In This Article

Horizontally resizes the tree list, so that it fits the client area.

#Declaration

Delphi
procedure AdjustColumnsWidth;

#Remarks

Call theAdjustColumnsWidth procedure if the Tree List has been horizontally resized (narrowed or extended), and it is required to restore the control to the client area’s boundaries if, for some reason, automatic column adjusting is disabled (the tree list’s OptionsView.ColumnAutoWidth property is False).

To prevent users from resizing columns, set the OptionsCustomizing.ColumnHorzSizing property to False. To prevent users from resizing of a particular column, set the column’s Options.Sizing property to False.

To adjust tree list content, call the ApplyBestFit procedure.

See Also