C# ListView Select Multiple Items Fires ItemSelectionChanged and SelectedIndexChanged multiple times

24 Views Asked by At

I created a list view where I added rows of data coming from the database. Imagine there are 200 records in the list view, user selects the first row, then hold shift and click the last row. This will practically select all 200 rows. My problem is ItemSelectionChanged and SelectedIndexChanged are called 200 times. I just want my logic to run when everything is finished with selection process. I can't find solution anywhere so far.

0

There are 0 best solutions below