Skip to main content

TcxCustomTreeList.AdjustColumnsWidth Method

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

Declaration

procedure AdjustColumnsWidth;

Remarks

Use the AdjustColumnsWidth method 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 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 adjust the tree list contents, use the ApplyBestFit method.

See Also