windowsforms-devexpress-dot-xtratreelist-dot-treelist-e3070cce.md
Gets or sets whether the updated column width calculation mechanism is enabled.
Namespace : DevExpress.XtraTreeList
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
[Browsable(false)]
public bool EnableImprovedColumnSizing { get; set; }
<Browsable(False)>
Public Property EnableImprovedColumnSizing As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the updated mechanism is enabled; otherwise, false.
|
Use the EnableImprovedColumnSizing property to switch between legacy and updated column width calculation modes:
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.
See Also