Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on May 08, 2008 14:33
open dhtmlx forum
grid cell type

I am trying to set the cell type to grid setCellExcellType but its not working. What could be the problem??

mygrid.setCellExcellType(mygrid.getRowsNum(),1,'grid');

Answer posted by Support on May 12, 2008 03:43
The setCellExcellType command expects that first parameter will be a row ID
In your code snippet - mygrid.getRowsNum() used, which returns maximum number of rows - most probably you need to use next code instead of existing one
    mygrid.setCellExcellType(mygrid.getRowId(mygrid.getRowsNum()-1),1,'grid');

Also, please beware that column indexes are zero-based, so 1 - index of second column