Skip to content

getColumnIndex

returns the index of the column with the specified id

function getColumnIndex(
// the id of the column
id: id
): number

number the index of the column

//gets the index of the 'rank' column
var ind = grid.getColumnIndex("rank");

Index represents the order of columns in the grid structure.
Zero-based numbering, i.e. the index of the first column == 0.

Articles

API