Skip to main content
Row

ColumnCollection.Insert(String) Method

Inserts a column with the specified heading into the worksheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

void Insert(
    string columnHeading
)

Parameters

Name Type Description
columnHeading String

The heading of the column to insert. Specify headings in the A1 reference style.

Remarks

The number of columns in a worksheet does not change—16,384. When you add new columns, other columns in the worksheet are shifted to the right, and an equivalent number of columns at the end of the worksheet is removed.

The following example demonstrates how to insert a column into a worksheet:

// Insert a column D.
worksheet.Columns.Insert("D");
See Also