title: TStringGrid: Is it possible to find out the 'State' of a cell?
body: <p>I want to implement a FillCell procedure for TStringGrid. I want to fill a certain cell with a color but only when the cell (row) is not selected.</p>
  
  <pre><code>procedure TMyStrGrid.FillCell(Rect: TRect; aColor: TColor);
  begin
   //if NOT (gdSelected in State) then    &lt;---- how do I obtain the 'State' here?
     begin
      Canvas.Brush.Color:= aColor;
      Canvas.FillRect(Rect);
     end;
  end;
  </code></pre>
  
  <p>This is just an exercise :) I am trying to figure out VCL.Grids.pas which is quite complex. </p>