'_cellType' is null or not an object

I have created an expense form using the grid. The body (bodyg) grid is 17 rows by 11 columns. Column 9 is type ‘ed’, but when I try to get the content of a cell in that column using …



var miles = bodyg.cells2(3,9).getValue();



I get …



A Runtime Error has occured.



Line 195

Error: ‘_cellType’ is null or not an object



This is occuring in dhtmlxGrid.js.



I don’t know what to look at to fix this.



Charlie R Chisholm

Such error may occur only if row in question not exist.
In which moment you are calling mentioned line? Please beware that XML loading is async process so you need to catch moment when  data loaded before calling any data related API.
    support@dhtmlx.com