Required library edition:
Required library file: dhtmlxgrid.js
sets id 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: setColumnIds, enableCellIds, getColumnId, getColIndexById