GetColumnIndex

Gets the corresponding column index.

Syntax

public int getColumnIndex(String columnName) 

Parameters

  • Column name

Results

Returns the corresponding column index.

Example

int columnIndex = dataTable.getColumnIndex("City");