Skip to main content
Row

IRangeProvider.GetColumnIndexByName(String) Method

Returns the index of the column with the specified heading in the A1 reference style.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

int GetColumnIndexByName(
    string columnHeading
)

Parameters

Name Type Description
columnHeading String

The heading of the column whose index should be returned.

Returns

Type Description
Int32

The column’s index. -1, if an invalid columnHeading is specified.

Remarks

Use the IRangeProvider.GetColumnNameByIndex method to obtain the column’s name by its index in the ColumnCollection collection.

See Also