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.

devx-admin

Share the Post: