A newer version of this page is available. Switch to the current version.

ListBoxColumnCollection.Insert(Int32, ListBoxColumn) Method

Adds the column to the specified position within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public void Insert(
    int index,
    ListBoxColumn column
Public Sub Insert(
    index As Integer,
    column As ListBoxColumn


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 ListBoxColumn

A ListBoxColumn object to insert.


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.

See Also