troubleshooting Question

Fast-find in TListView

Avatar of coldboy
coldboy asked on
6 Comments1 Solution338 ViewsLast Modified:
I'm dealing with TListView.
As normal, when a ListView is active, if you type some key, (eg abc), then the ListView finds the first row that the first-field's caption starts with abc and then selects it. But now, I want to add more column before the main column (eg ID to identify the number of current row), but I want to still using the main field's data for finding (ie. When I typing abc into it, the ListView start to find item which SubItems[0] starts with abc and then selects it). It's now get problem. I don't want to hook OnKeyDown event and then dealing with it, it will involve many another probs. I want the fastest and shortest method that available.
Please help!

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros