what could be causing this error in dhtmlxgrid.js?

In dhtmlxgrid.js

this.obj.firstChild is null

Line 848
if (_isKHTML)this.obj.appendChild®;else {this.obj.firstChild.appendChild®;}else {this.rowsCol[ind].parentNode.insertBefore(r, this.rowsCol[ind]);};this.rowsCol._dhx_insertAt(ind, r);return r;},

I suspect it is something in the XML being provided to grid. But if you have encountered this before and can give some clue it will help me debug.

forgotten to call grid.init() ? I got exactly this error once I didn’t call the init() function but startet working on the grid.

Thanks. It was an init issue. It is working fine now.