Hide checkbox for certain rows

Am using a grid with the col types as mygrid.setColTypes(“ch,tree,ro”);

I dont want the checkbox in certain rows.How do i do this? I tried setting the coltype before each addRow but its not working.

I tried setting the coltype before each addRow but its not working.

The coltypes affect all cells in the same column, and can’t be used to dynamically change cell types
Grid supports special method for changing type of specified cell

    grid.setCellExcellType(some_id,index,“ro”)
    grid.cells(some_id,index).setValue("")