Geoffrey

I'm trying to wire up a SelectionChanged handler for my ListBox. I'm using SelectionMode="Multiple" and when I select an item, sure enough the event handler gets called with the AddedItems collection containing the item I selected. However, when I click on that item again, which should deselect the item and remove it from the selection, it instead calls through to the event handler with the item still listed in the AddedItems collection and not in the RemovedItems collection.

Geoffrey

Not to worry, I discovered the cause of the problem. In this case I hadn't implemented the Equal override correctly for the objects in my databound collection. So the ListBox assumes that every time I select an object it is a new one instead of one it has already marked as selected.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.