I've got a TListView
and several controls on a form representing data. When the selected item in the TListView
changes, I want to validate the data and save it back to the backing store before changing to display the new record. But there doesn't appear to be any event handler to hook into. Turns out that the one that looks obvious, OnChanging
, which even includes a way to abort the change, isn't about changing your selection at all; it's about editing the current item.
Is there any way I can do validation before changing the current selection on a TListView
?