Mauri Posted November 21, 2016 Share Posted November 21, 2016 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 More sharing options...
Sherzod Posted November 21, 2016 Share Posted November 21, 2016 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now