Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 02, 2008 10:44
open dhtmlx forum
How to use different color font for all cells of a column.

Hi,

Is there a way to format the cells in a column to have different color font? What we want is to have price like formatting, where all cells from this column to have green font but without $ sign in front. Also we would like to format the number with "," at every 3 digits.

ex: 100,000.00 in green.

Thanks,
Ben
Answer posted by Support on Jan 14, 2008 08:51
>>to have different color font
Such functionality can be achieved only by creation custom excells
( also it can be created by using onCellChanged event , which occurs when any cell value changed in grid, custom code can be attached to it, which will mark cell based on its value )

>>Also we would like to format the number with "," at every 3 digits.
It can be done by
    grid.setNumberFormat(...