How to set cell class by javascript?

Hi There,

DhtmlxGrid

I want to set cell class=‘form_cell’ fom javascript function (but not in xml).

An example of this is…

First, Last Name
John, Bossom

How can I set above attribute (class=‘form_cell’) to a cell from javascript?

Please Help

Thanks

mygrid.forEachRow(function(id){
mygrid.cells(id,2).cell.className=‘my_class’;
})