All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
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.v21.2.Core.dll

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