How can I obtain the dataset row for the selected item of FMX.ListView.TListView?


My question relates to the use of Firemonkey TListView in Delphi 10.2 Tokyo.

I have a FMX form with a ListView with ItemAppearance.ItemApearance = which allows me to add any number of TTextObjectAppearance items.

The TListView has LiveBindings to TFDQuery fields via a TBindSourceDB. All my fields display as I want them to in the ListView.

I do not wish to display the primary key from that query to the user but I do want to be able to receive the primary key once the user selects an item in the listview.

The goal is to be able to locate the row in the TFDQuery dataset that contains other columns of information required to generate the next screen.

I would much appreciate your advice. Thanks in advance.

Comments are closed.