TreeListColumnCollection.Insert(Int32) Method
Creates a new column and adds it to the collection at the specified position.
Namespace: DevExpress.XtraTreeList.Columns
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public TreeListColumn Insert(
int index
)
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | A zero-based integer specifying the new column’s position within the collection. If negative, the column is inserted as the first element. If it exceeds the last available index, the column is appended to the end of collection. |
#Returns
Type | Description |
---|---|
Tree |
A Tree |
#Remarks
Use the Insert method to add a new column with default settings to the specified position within the collection. Note that the new column has no caption and is not bound to any data source field. Thus, you need to customize the method’s return object to provide appropriate column settings.