DHTMLX Docs & Samples Explorer

getColumnsNum()

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

Returns number of columns in grid (including hidden columns)

   var colNum=mygrid.getColumnsNum();

See also: forEachCell, getRowsNum