Getting the header column index

Getting the header column index

noelnoel Posts: 10Questions: 0Answers: 0
edited August 2010 in General
is there a way to get the index of a particular column

Col1,Col2,Col3

I would like to get 1 if I query "Col2"

Thought I could use this to get the header, but it returns the first data row.
var aData = oTable.fnGetData(0);
This discussion has been closed.