Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Muhammad Jafer on Jun 26, 2009 06:53
open dhtmlx forum
Aligning Header of Grid in XML

echo "<column width=\"112\" type=\"ro\" align=\"left\" sort=\"str\" >Price</column>";
        echo "<column width=\"112\" type=\"ro\" align=\"left\" sort=\"str\">Rate</column>";

above is an example of xml header which i need to align center. I need to align header center irrespective of contents of the row.
Answer posted by Alex (support) on Jun 26, 2009 07:46

The text align of the header cell can be set in the dhtmlxgrid.css.

div.gridbox table.hdr td {
...
text-align:center;
}


In case of using some skin the class name will be following:

div.gridbox_SKIN table.hdr td { ...}

for example for light skin div.gridbox_light table.hdr td