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.AutoFillColumn Property

Gets or sets a column that automatically stretches to occupy all available empty space when the column auto-width functionality is disabled.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(null)]
[DXCategory("Data")]
public TreeListColumn AutoFillColumn { get; set; }

#Property Value

Type Default Description
TreeListColumn null

A TreeListColumn object that occupies free TreeList space.

#Remarks

If the TreeListOptionsView.AutoWidth setting is disabled, all columns gain a fixed width specified by the TreeListColumn.Width property. In this mode, use the AutoFillColumn property to make any column an auto-fill one. An auto-fill column is automatically resized to occupy all available free space. The following animation shows a sample TreeList control with the AutoFillColumn property set to the DEPARTMENT column.

Instead of explicitly specifying an auto-fill column, you can utilize the TreeList.AutoFillFieldName property to specify a data source field whose Tree List column should be an auto-fill one.

The AutoFillColumn property is not in effect if all columns stretch automatically (see the TreeListOptionsView.AutoWidth property).

See Also