dhtmlgrid: colour picker cell type + text data


I have an application that would benefit from having a column in the grid which has the cell in each row of the column a different colour depending on the value from a field in the attached database.

I can use the colourpicker column type to display the colour but what I want to do is add the value upon which the colour was selected in the same cell as well as the background colour.

Can I do this?


a) in case of loading from css you can use style attribute of row


b) In case of after-edit functionality you can use code similar to next

    if (cind==INDEX)

where INDEX - index of column with colorpicker