www.csvreader.com

Gets the corresponding column index for a given headerName.

[Visual Basic]
Public Function GetIndex( _
   ByVal headerName As String _
) As Integer
[C#]
public int GetIndex(
   string headerName
);

Parameters

headerName
The column header of the column.

Return Value

The column index for the given headerName. Returns -1 if not found.

See Also

SpreadsheetReader Class | DataStreams.Common Namespace