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

TreeListColumn Class

Represents a single column in the TreeList control.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

public class TreeListColumn :
    Component,
    IAppearanceOwner,
    IDataColumnInfo,
    IHeaderObject,
    IXtraSerializableLayoutEx,
    ISupportDXSkinColorsEx,
    ISupportDXSkinColors,
    ISupportDesignMode

Remarks

The TreeListColumn class encapsulates a single column in the TreeList.

A Tree List column is a component. If a column is created at design time, it can be accessed in code by its name.

All columns can be accessed using the TreeList.Columns collection. This property provides an indexer (TreeListColumnCollection.Item) that enables you to access columns by their indexes (TreeListColumn.AbsoluteIndex) and field names (TreeListColumn.FieldName).

The TreeListColumn.Caption property allows you to set a column header to a custom string.

The TreeListColumn.OptionsColumn property defines a set of settings that control column focus, movement, data sorting and column size modifications. The appearance of column cells can be customized with the TreeListColumn.AppearanceCell property.

To change the text format of column cell values, use the TreeListColumn.Format property.

You can calculate summaries against a column using the TreeListColumn.RowFooterSummary and TreeListColumn.SummaryFooter properties.

To access a column value in a specific node, use the indexer provided by the Tree List node (TreeListNode.Item).

Inheritance

See Also