Skip to main content

TreeListColumnCollection.Add() Method

Creates a new column and appends it to the end of the collection.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v23.2.dll

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

Declaration

public TreeListColumn Add()

Returns

Type Description
TreeListColumn

A TreeListColumn object representing the new column.

Remarks

Use the Add method to add a new column with default settings to the end of the collection. Note that the new column has no caption, is not bound to any data source field and has any other settings cleared. Thus, you need to customize the method’s return object to provide appropriate column settings.

Please refer to the Columns topic for details.

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

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