On an ealier version of Intraweb (I don't remenber what version), I had this to change at runtime the color of a Cell based on a condition on the IWDBGridRenderCell event:
ACell.Css := 'Grid';
if ( AColumn = 1 ) and ( Pos('Comograma', ACell.Text) <> 0 ) then
begin
ACell.Css := 'GridTexthighlighted';
end;
and this worked.
Now, after upgrading to v14.1.8, this do not work anymore. What changed? How can I accomplish this?
I set the .css value and use it for similar purposes in version 14 so that should still work fine (I'm not familiar with earlier versions).
I'd first try to determine where the problem lives. Is the 'GridTexthighlighted' being rendered to the "class" of the cell element? Check the HTML content in the browser.
If it is being rendered, then you can track your css definitions to find out why the color is not responding. If it is NOT being rendered, then you can look back into your IW code to determine why. There could be something going on with the grid or cell, but before I went into that I'd find out if that is where the problem lives.
I'd find out which direction to look as a first step.
Dan
Connect with Us