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’);



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