title: Changing TTextCell background colour at runtime XE4
body: <p>I worked through the example posted here as my starting point: <a href="https://stackoverflow.com/questions/15107866/change-background-of-ttextcell-in-a-firemonkey-tgrid">Change background of TTextCell in a Firemonkey TGrid</a></p>
  
  <p>I have created a textcellstyle which references an image, and this is working well. When I run the program all the cells display the background image as expected. </p>
  
  <p>From the above link, Mike Sutton (I hope you're reading this, what would we do without your input!) writes (repeated here just to make it easier):</p>
  
  <p>"You can then set each of your cells StyleLookup properties to use it, or set the styles StyleName to TextCellStyle to have it picked up automatically for every TTextCell."</p>
  
  <p>Following on from the query about changing the font colours (<a href="https://stackoverflow.com/questions/16477985/delphi-xe4-firemonkey-grid-control-styling-cells-individually">Delphi XE4 Firemonkey Grid Control - Styling cells individually</a>), can one set the background colours dynamically as well?</p>
  
  <p>My code on creating the cells:</p>
  
  <pre><code>Constructor TFinancialCell.Create(AOwner:TComponent);
  
  begin
    inherited;
    StyleLookup:='textcellstyle';
    StyledSettings:=StyledSettings-[TStyledSetting.ssStyle,TStyledSetting.ssFontColor]; 
    TextAlign:=TTextAlign.taTrailing;
  end;
  </code></pre>
  
  <p>This applies my image successfully to TFinancialCell.</p>
  
  <p>But, as per the font colour query, I would like the image background to display only when a certain value is reached or whatever:</p>
  
  <pre><code>Procedure TFinancialCell.ApplyStyling;
  begin
    Font.Style:=[TFontStyle.fsItalic];
  
    If IsNegative then
      FontColor:=claRed
    else
      FontColor:=claGreen;
  
    If IsImportant then Font.Style:=[TFontStyle.fsItalic,TFontStyle.fsBold]; 
    If Assigned(Font.OnChanged) then
      Font.OnChanged(Font);
  
    Repaint;
  end;
  </code></pre>
  
  <p>Any help as to how to do this would be appreciated.  </p>