Jump to content

Mobile ListView with data custom design


mhmda

Recommended Posts

  • 1 month later...

You can do it using 'Field->OnGetText' and set the 'text' with the desired html template.

Thank's for you reply can you make simple demo or source how do it?

 

For example

I have 2 field in dataset

1 - job position

2 - Staff Name

 

For example dataset has 3 rows I want show in one cell like this each row

  officer

  Bob Mark

 

  head of department

  Bill Clinton

 

  programmer

  Stive Jobs

Link to comment
Share on other sites

Thank you guys

procedure TMainForm.qrySaleListRECEIPNMGetText(Sender: TField; var Text: string;
  DisplayText: Boolean);
begin
   Text := '<span style="line-height: 0.5; text-align: left"><sup>' + Sender.AsString + '</sup></span><br><span style="line-height: 2.0;color : #4183C4;text-align: left">' + Sender.AsString + '</span>';
end;

M2vg6dUJQ6ef_wfYKKUHRw.png

  • Upvote 1
Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 months later...
  • 2 months later...
  • 1 year later...
  • 2 weeks later...
  • 3 months 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...