Mauri Posted November 21, 2016 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 Quote
Sherzod Posted November 21, 2016 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.