Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColumnCollection.Insert(String) Method

Inserts a column with the specified heading into the worksheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.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