Change Color of a single cell in the wwDBGrid Footer

Comments

2 comments

  • Roy Woll

    Unfortunately this is not seamlessly supported. I will log this for the future.  As a workaround I believe the following will work as the current code allows you to override the color only in this case.

    Assign your FooterCellColor property to something besides clBtnFace.

    Then use the OnDrawFooterCell event with something like the following code.

    procedure TBitmapForm.InvoiceGridDrawFooterCell(Sender: TObject;
      Canvas: TCanvas; FooterCellRect: TRect; Field: TField; FooterText: string;
      var DefaultDrawing: Boolean);
    begin
      if Field.FieldName='Total Invoice' then
        Canvas.Brush.Color:= clRed;
    
    end;
    
    0
    Comment actions Permalink
  • Leonard Mann

    Thanks Roy,

    That is exactly what I was looking for.

    1
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk