ListViewFilterEdit: how to detect original listitem? lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2018-01-13 12:11 TListViewFilterEdit has filter filled. Listview is changed. Listview was filled from "data" [maybe some array]. How can I get original index of listview item, in "data", for focused item of Listview? Seems, I need to read Caption of focused item. Then search by this caption inside "data"? ---------------------------------------------------------------------- balazsszekely · 2018-01-13 15:10 Use the ListViewFilterEdit.Items.Add(ListItem) method, where the ListItem is a TListViewDataItem: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  TListViewDataItem = record    Data: Pointer;    StringArray: TStringArray;    class operator =(a,b : TListViewDataItem) : Boolean;  end; You can store any object in Data: Pointer(class instance, Tobjects, records, etc...) including the index of the array for example