Back to Devexpress

TreeList.AutoFillColumn Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-3b6f8dcf.md

latest2.9 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Data")]
public TreeListColumn AutoFillColumn { get; set; }
vb
<DXCategory("Data")>
<DefaultValue(Nothing)>
Public Property AutoFillColumn As TreeListColumn

Property Value

TypeDefaultDescription
TreeListColumnnull

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

AutoFillFieldName

BestFit()

AutoWidth

FixedWidth

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace