onEditCell change color of cell

Hi,



I am trying to figure out a way to change font-color (or make it underline) of cell that is edited. I see that it is possible to have entire row getting “bold” when edited but is there a way change the format of the edited cell only?



Thanks.



TJ


You can access the HTML element of cells as

grid.cells(id,ind).cell



so you can assign any styles to cell as

grid.cells(id,ind).cell.style.color=“red”;
or
grid.setCellTextStyle(id,ind,“color:red;”);



The moment when cell switched to edit state can be catched by using onEditCell event