Is it possible to make a TListView search by the caption of a different column in Delphi?

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-06-08T13:34:00Z Indexed on 2010/06/08 14:22 UTC
Read the original article Hit count: 131

Filed under:
|

Hi,

When you set the Caption of a TListItem it seems to always set the Text for the first column in the row. When you start typing in the ListView it will search & select the closest match based on the caption of the first column.

I have a situation where I need the caption of the first row to be empty, but still need the search functionality to work as normal (in this case the data I would be searching for may be in the 2nd/3rd column).

Is this possible without using any 3rd party controls?

© Stack Overflow or respective owner

Related posts about delphi

Related posts about listview