I have winforms ListView to which I have added items that have subitems. Looks good. I have enabled CheckBoxes. I have a ListView.Click handler enabled. When I click on a row, nothing happens... surprising, but OK.
When I click on a checkbox in a row, the ListView.Click() handler fires but thows an exception on the first line:
ListViewItem item = alarmList.SelectedItems;
In fact, SelectedItems has count of 0. It is like the line is not selected, even tho it responded to the Click. How can this be?
How can I get the Item for the checkBox I just clicked on?