I use TMSFMXTableView in my project.Now,every item needs show one Caption,one Image and multi-description.I want to know,how can TMSFMXTableView's every item show multi-description?Thank you.
Hi,
You can use the following code to accomplish this:
procedure TForm1.FormCreate(Sender: TObject);
var
it: TTMSFMXTableViewItem;
begin
TMSFMXTableView1.BeginUpdate;
TMSFMXTableView1.Items.Clear;
it := TMSFMXTableView1.Items.Add;
it.Caption := 'Caption';
it.Description := 'Multiline'#13#10'Description';
it.AutoSize := True;
TMSFMXTableView1.EndUpdate;
end;
Thanks.It works.And now,I want to every description can bind a feild.How can do it?
Hi,
You can take a look at the LiveBindings demo included in the distribution on how to connect to a TClientDataSet