ListBoxColumnCollection.Insert(Int32, ListBoxColumn) Method
Adds the column to the specified position within the collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public void Insert(
int index,
ListBoxColumn 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 | List |
A List |
#Remarks
Use the Insert method to add the column at the specified position within the collection. To add the column to the end of the control’s column collection, use the ListBoxColumnCollection.Add method.
To remove the specified column from the collection, use the ListBoxColumnCollection.Remove method.
Use the ListBoxColumnCollection.Item property to access the individual column by its index within the collection.