Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rasmit on Jun 18, 2009 00:20
open dhtmlx forum
How to apply a style cladss to a cell of a row ?

Hi,
I want to apply a style class to a cell of a given row. How could i achieve it?

ex:

mygrid.cells(rowId,1)- will gives me the desired cell of the row - rowId
and i want to apply the style class to the 8th cell of the same row.
Which shows the borders of the cell in red color and background of the cell will be white.


Kindly help me ASAP.


thanks,
Rasmit.
Answer posted by dhxSupport on Jun 18, 2009 01:42
You can set class to the necessary row using:
mygrid.cells(rowId,1).cell.className="test";

To set style for this class you should use:
div.gridbox table.obj td.test{
  border: 2px solid red;
  }