IRangeProvider.GetColumnIndexByName(String) Method
In This Article
Returns the index of the column with the specified heading in the A1 reference style.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
column |
String | The heading of the column whose index should be returned. |
#Returns
Type | Description |
---|---|
Int32 | The column’s index. -1, if an invalid column |
#Remarks
Use the IRangeProvider.GetColumnNameByIndex method to obtain the column’s name by its index in the ColumnCollection collection.
See Also