DHTMLX Docs & Samples Explorer

setCellTextStyle(row_id, ind, styleString)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

sets style to cell

  • row_id - row id
  • ind - cell index
  • styleString - style string in common format (ex: “color:red;border:1px solid gray;”)
   mygrid.setCellTextStyle("row1",0,"color:red;border:1px solid gray;");

Please make sure that necesary cell is loaded before calling this method.

See also: setStyle, setRowTextStyle