Skip to content

Resizing

Flexible TreeView allows you to fully control the behavior of column sizing. To get or set the column width, use the Width property. When resizing the column, it is restricted by the values of the MinWidth and MaxWidth properties, which define the minimum and maximum widths in pixels, respectively. If you want to prevent column resizing entirely, disable the Resizable property of the column.

Events#

After the column width has been changed, the treeview raises the ColumnWidthChanged event.

Column auto-size#

When you don't know the content width of a column and want to automatically show all the column's content at once, enable the AutoSize property to adjust the column width according to the content inside. If you want to auto-fit all columns in the treeview, enable the Options.Column.AutoFitColumns property of the treeview.