Error type: Incorrect cell type : undefined

Hello,



I’m having a hard time with the dhtmlXGridFromTable function. It dows create the object which shows up on my web page but whenever I move the mouse over the table, I get this error message :



Error type: Incorrect cell type : undefined



The code is very simple :







    

    

            

        

    







Convert table to grid



<table id=“tblToGrid” “width:400px” imgpath="…/…/codebase/imgs/" border=“1” lightnavigation=“true”>

<!— First row treatted as grid header —>



<!— First column can’t be edited —>

Column 1

Column 2



<!— All other rows - Grid body —>



value 11

value 12





value 21

value 22















I’ve added the type=“ro” as a test but it does not solve my problem.



Any idea what could be causing this?

Thanks,

P

In which browser problem occurs for you , I tested your code snippet with in IE and FF - works in both for us ( please check attached sample )
Such problem occurs when type of column specified incorrectly ( related excell not found )

Please try to remove HTML comments, in some situation they can be counted as valid tags and included in table model, which can cause similar errors.
If problem still occurs for you - please provide any kind of sample where it can be reconstructed.

1198236281.zip (57.9 KB)