- This topic has 0 replies, 1 voice, and was last updated 5 years, 9 months ago by .
Viewing 0 reply threads
Viewing 0 reply threads
- You must be logged in to reply to this topic.
Tagged: smartbind
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.