Trouble getting column header

I thought that the column headers in grid were just the first row. When I do grid.cells2(0, colid) I get the first row of data. I’m either wrong about my assumption or cells2 is indexed wrong. Anyone know how to get the grids headers, im mainly iterating them to only get the columns that aren’t hidden or have a width of 0?

I thought that the column headers in grid were just the first row. When I do grid.cells2(0, colid) I get the first row of data.
Yes, it is. First row index is 0.

Anyone know how to get the grids headers, im mainly iterating them to only get the columns that aren’t hidden or have a width of 0?

If you want get column label - you can use getColumnLabel() method docs.dhtmlx.com/doku.php?id=dhtm … olumnlabel

If you want get reference to the grid header, you can use following code:

var header=mygrid.hdr;