Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Marcos on Oct 03, 2007 17:29
open dhtmlx forum
I'm testing the dhtmlXgrid Standard version. Is it possible to apply different fonts and colors to headers and cells?

Answer posted on Oct 03, 2007 18:01
Yes it can be set by API or from configuration XML

by API

    grid.setRowColor(...
    grid.setRowTextStyle(...
    grid.setCellTextStyle(....

from XML


XML
<row id="a" class="acss">
    <cell>1</cell>
    <cell class="bcss">2</cell>

in HMTL
<style>
    .acss TD { color:red; }
    .bcss { background-color:navy; }
</style>


Answer posted by Marcos on Oct 03, 2007 20:15
Thanks for the quick reply. Very nice product.