Jump to content

Grid canvas


Mauri

Recommended Posts

Hi,

 

We use the Grid canvas to change the cell value according to the database value for some columns, like that (idgRecPac.Canvas.TextRect(Rect,Rect.Left + 2,Rect.Top + 2,IntToStr(icdManute.RecNo))),

 

I would like to know if there's a way to do that in Unigui 

 

thank you

 

Mauri

 

 

Unigui: 0.99.96.1341

Delphi: XE6

Link to comment
Share on other sites

Hi,

 

For now can you try to use OnGetText Event for your Field ?!

 

For example:

procedure TMainForm.ClientDataSet1LastNameGetText(Sender: TField;
  var Text: string; DisplayText: Boolean);
begin
  if Sender.DataSet.FieldByName('FirstName').AsString <> '' then
    Text := '<b>' + Sender.AsString + '</b>'
  else
    Text := Sender.AsString
end;

Best regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...