Jump to content

Recommended Posts

Posted
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

Posted

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.

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...