unigui 设置单元格颜色

时间:2021-04-03 23:42:29

procedure TF_Resource2.UniDBGrid1DrawColumnCell(Sender: TObject; ACol,
  ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin

if Column.FieldName='zt' then
  begin
    if Column.Field.AsString='通过' then
    begin
      Attribs.Font.Color:=clGreen;
    end;
  end ;

end;