Set color to cell in grid ?

If i want to set color to cell in grid.When i click on on cel o grid.How i can set ?(only cell not row or column)

You can set any style string by using
    grid.setCellTextStyle

grid.attachEvent(“onRowSelect”,function(id,ind){
    grid.setCellTextStyle(id,ind,“background-color:red;”);
});