Data grid title button attributes

Comments

1 comment

  • Roy Woll

    I would use the OnCustomDrawCell event. For instance the following changes the background color to yellow for the buyer column.

     

    procedure TDataGridControlsForm.wwDataGrid1CustomDrawCell(Sender: TObject;
      CellAttributes: TwwCustomDrawCellAttributes);
    begin
      if (cellattributes.DataRow<0) and
        (cellattributes.Column<>nil) and
        (cellattributes.Column.FieldName='Buyer') then
        cellattributes.BackColor:= TAlphaColorRec.Yellow;
    
    end;

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk