Skip to main content

TreeListColumnCollection.Insert(Int32, TreeListColumn) Method

Adds the specified column to the specified position within the collection.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public void Insert(
    int index,
    TreeListColumn column
)

#Parameters

Name Type Description
index Int32

An integer value that specifies the zero-based index at which the specified column should be inserted. If it’s negative or exceeds the number of elements, an exception is raised.

column TreeListColumn

A TreeListColumn object or descendant to insert to the collection.

#Remarks

To append the specified column to the collection, use the TreeListColumnCollection.Add method. To remove the column from the collection, use the TreeListColumnCollection.Remove method.

See Also