How bind TStringList with fmx listview?

Home Forums kbmMW How bind TStringList with fmx listview?

Tagged: 

Viewing 0 reply threads
  • Author
    Posts
    • #54554
      TomYU
      Participant

      hi,

      How to modify the following code with SmartBind?

      var
      I: Integer;
      aItem: TListViewItem;
      begin
      ListView1.BeginUpdate;
      try
      ListView1.Items.Clear;
      for I := 0 to StringList1.Count – 1 do
      begin
      aItem := ListView1.Items.Add;
      aItem.Text := StringList1.KeyNames[i];
      aItem.Data[‘ItemValue’] := StringList1.ValueFromIndex[i];
      end;
      finally
      ListView1.EndUpdate;
      end;
      end;

      best regards

      Tom YU.

      • This topic was modified 3 weeks, 2 days ago by TomYU.
Viewing 0 reply threads
  • You must be logged in to reply to this topic.