Accessing cells when using a TreeGrid

Hi,

We are using dhtmlxSuite_pro_2008Rel2_80512, and have problems accessing cells in a treegrid.
The following is an example

[code]

[/code] The above code works as expected, but if we uncomment the "setColTypes" line, the last column does not get set to "bar". Instead we get the following error (in Firefox, not tested with other browsers): [quote] mygrid.cells2(0, 1) is undefined [/quote] How can we make access of treegrid cells work as expected?

The code which you are using , tries to access the second column of grid ( indexes are zero based), which is in your case have an “str” type.

But there is no such column type as “str” - just change it to any existing column type ( ed or ro for example.