Object required error in IE 6 for the grid.cells() method

I am trying to access the cells in the grid object using the grid.cells() method. Here is the javascript code:



grid = new dhtmlXGridFromTable(‘tableName’);



selRowId = grid.getSelectedId();



name = grid.cells(selRowId, 0).getValue();<–DIES HERE

unit = grid.cells(selRowId, 1).getValue();

phone = grid.cells(selRowId, 2).getValue();

email = grid.cells(selRowId, 3).getValue();





I am initiallizing the grid in HTML in a JSP. This method works fine in firefox, but does not work in IE. Here is some of the jsp:





















//HEADER

        

    

    

    

    

    

    



     …THERE IS LOOP HERE THAT CREATES THE ROWS…



    

    

                

    

    

    





Here is a clip from the windows debugger:



this.cells4 = function(cell){

if (!cell.cellType) <-- IT SAYS MY CODE DIES HERE

return eval("new eXcell
"+this.cellType[cell._cellIndex]+"(cell)");

else



Any help would be greatly appreciated.
Name
Unit
Phone
Email
Actions
#cspan
VALUE VALUE VALUE VALUE IMAGE IMAGE

Such error may occurs only if not existing column index used, but it seems pretty strange in described case , because index 0 must exist.
I’m not sure but it can be browser specific issue - please try to remove new lines between tr and td tags ( in some special cases it can be counted as HTML elements, and will be able to break correct functionality )
If problem still occurs for you - please send full sample code to support@dhtmlx.com