Cell and setStyle

Hello,

if a new row is added i would like to change the style for this special row (cell), so i tried

newRowId = mygrid.uid();
var newRow = mygrid.addRow(newRowId,[0,"",""]);

but neither

mygrid.cells(newRowId,0).cell.setStyle('align:right;'); 

nor

mygrid.cells(newRowId,0).cell.setStyle({align:'right;'}); 

doesn’t work.
Why not?

Yours sincerely, Carsten

Try
mygrid.setCellTextStyle(newRowId,0,‘text-align:right;’);

This works! Thank you. :smiley: