Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

ColumnCollection.Insert(String) Method

Inserts a column with the specified heading into the worksheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.2.Core.dll

Declaration

void Insert(
    string columnHeading
)

Parameters

Name Type Description
columnHeading String

The heading of the column to insert.

Remarks

The method’s columnHeading parameter requires a column heading in the A1 reference style.

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

Note

The number of columns in a worksheet is unchanged - 16,384. When you add new columns, other columns in the worksheet are shifted to the right, and the equivalent number of columns at the end are automatically removed from the worksheet.

See how add new rows and columns to a worksheet.

See Also