Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mongkol on Jul 05, 2008 02:25
open dhtmlx forum
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)
Answer posted by Stanislav on Jul 05, 2008 05:08
You can set any style string by using
    grid.setCellTextStyle

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