Firemonkey TlistView how to search for item by its data?

  

i am adding items to Tlistview in firemonkey with the following data

ListView1.BeginUpdate;
try
begin
LItem := ListView1.Items.Add;
LItem.Text := nametoadd;
Litem.Data[‘ItemID’]:= ‘1’;

end;
finally
ListView1.EndUpdate;
end;

i wanted to search inside the items if Litem.Data[‘ItemID’] = 1 or what ever and do something with the item after that , how can i do that ?

Comments are closed.