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

TreeList.EnableImprovedColumnSizing Property

Gets or sets whether the updated column width calculation mechanism is enabled.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

[Browsable(false)]
public bool EnableImprovedColumnSizing { get; set; }

#Property Value

Type Description
Boolean

true if the updated mechanism is enabled; otherwise, false.

#Remarks

Use the EnableImprovedColumnSizing property to switch between legacy and updated column width calculation modes:

  • legacy mode - column width changes dynamically depending on TreeList settings and node levels.
  • updated mode - the TreeListColumn.MaxWidth and TreeListColumn.MinWidth settings work as expected, meaning you can set a column to a specific size that will remain unchanged.

The figure below illustrates the difference between these modes. The “Name” column’s width equals 120, TreeListColumn.MinWidth is 30, and the TreeListOptionsView.BestFitNodes is set to Visible. When the EnableImprovedColumnSizing setting is off, this “Name” column ignores its width setting and behaves according to the BestFitNodes property: shrinks when collapsed. If the EnableImprovedColumnSizing setting is enabled, column widths are constant in both expanded and collapsed states.

TreeList - Improved Column Sizing Example

See Also