Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brad Rix on Feb 17, 2008 09:47
open dhtmlx forum
Does dhtmlgrid v1.5 support formatting of cells

I read that v1.5 professional of dxhtmlgrid supports formatting of cells. I was unable to find details of this in the documentation.

Does dxhtmlgrid v1.5 professional support formatting of styles of cells.

Can we make the text in a specific cell
bold?
different color?
background color of cell to different color?
Answer posted by Support on Feb 18, 2008 06:46
You can provide custom styles for any cell in grid by using style attribute ( actually it was possible in previous version as well, just in less flexible way )

<row id="some">
    <cell style="font-weight:bold">some</cell>
    <cell style="color:red">some</cell>
    <cell style="background-color:green">some</cell>
</row>


The style can be set by js API as well

    grid.cells(i,j).cell.style=" any style text here ";