Listview ItemSelectionChanged fires twice?

后端 未结 4 1100
天涯浪人
天涯浪人 2020-12-16 19:56

I have a Winforms App in C# with a ListView control. This ListView shows a list of TO-DO items and I am using the \'ItemSelectionChanged\' event to handle updates.

<
4条回答
  •  甜味超标
    2020-12-16 20:19

    I think you need manually unselect the item in the end of your handler.

    listView1.SelectedItem = null;

提交回复
热议问题