Required library edition: Required library file: dhtmlxgrid.js
Returns number of columns in grid (including hidden columns)
var colNum=mygrid.getColumnsNum();
See also: forEachCell, getRowsNum