Jump to content

UnigridExcelExporter Render Error


yakup

Recommended Posts

2 minutes ago, Sherzod said:

 

You can use demo project adding this

procedure TxForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol, ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
  if true then
  begin
    Attribs.Font.Color := clRed;
    Attribs.Font.Style := [fsBold];
  end;
end;

Link to comment
Share on other sites

15 minutes ago, Farshad Mohajeri said:

Can you please attach a sample project?

You can use demo project adding this

 

procedure TMainForm.UniDBGrid1DrawColumnCell(Sender: TObject; ACol, ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs);
begin
 if TUniDBGrid(Sender).DataSource.DataSet.FieldByName('UnitPrice').AsFloat < 100 then
  begin
    Attribs.Font.Color := clRed;
    Attribs.Font.Style := [fsBold];
  end;
end;

 

and make UseColumnRenderer := True;

 

image.thumb.png.ee280c945f812319c63b6ccbfa312901.png

 

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...