TreeListColumn Class
Represents a single column in the TreeList control.
Namespace: DevExpress.XtraTreeList.Columns
Assembly: DevExpress.XtraTreeList.v18.1.dll
Declaration
public class TreeListColumn :
Component,
IAppearanceOwner,
IDataColumnInfo,
IHeaderObject,
IXtraSerializableLayoutEx
Related API Members
The following members accept/return TreeListColumn objects:
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).
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the TreeListColumn class.
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.