ListViewItem generating “The given key was not present in the dictionary.” error

StackOverflow https://stackoverflow.com/questions/898644

  •  23-08-2019
  •  | 
  •  

Question

How can

ItemCheckedEventArgs.Item.Selected = ItemCheckedEventArgs.Item.Checked

generate "The given key was not present in the dictionary." ??

Was it helpful?

Solution

The confusion was due to the fact that VS does not step into event handlers when you step through properties, so I wasn't seeing the error in my SelectedIndexChanged handler.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top