Required library edition:
Required library file: dhtmlxgrid.js
sets ids to every column. Can be used then to retreive the index of the desired colum
mygrid.setColumnIds("sales,book,author,price,store,shipping,best,date");
See also: setColumnId, enableCellIds