DHTMLX Docs & Samples Explorer

getColIndexById(id)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

gets column index by column id

  • id - column id
   //get index of the column with id "col1"
   var colIndex=mygrid.getColIndexById("col1");

See also: setColumnId, setColumnIds,getColumnId