Skip to main content
A newer version of this page is available. .

TreeListOptionsView.AutoWidth Property

Gets or sets whether the widths of column is automatically adjusted so that the total width of all the columns matches the Tree List’s width.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AutoWidth { get; set; }

Property Value

Type Default Description
Boolean **true**

true to enable the column auto width feature; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AutoWidth
WinForms Controls ResourcesTree
.OptionsView.AutoWidth
TreeList
.OptionsView.AutoWidth
Reporting XRDesignFieldList
.OptionsView.AutoWidth
XRDesignReportExplorer
.OptionsView.AutoWidth

Remarks

If the column’s TreeListOptionsColumn.FixedWidth property is set to true, the column’s width isn’t changed when the auto width feature is enabled.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoWidth property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also