devxlogo

Highlighting Multiple Items in a ListView Control

Highlighting Multiple Items in a ListView Control

Question:
I’m creating an email application and I require the ability to highlightall the items in the ListView control (not just the first item) in thesame fashion as Microsoft Exchange highlights the item and subitems foreach received message. How can this be accomplished?

Answer:
Each node/entry in the ListView has the “Selected” property. Try setting multiple entries’ Selected properties to True. From what I saw in the help, the Selected property was the only applicable property for selecting/deselecting items. In this case, you may have to use a grid or other control that more readily supports multiple item selections.

See also  Essential Measures for Safeguarding Your Digital Data
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist