Hi @genush , Welcome to Microsoft Q&A,
You can temporarily disable ListView during the update process to prevent mouse events from interfering with the update. You can set Enabled = false
before the update and restore it after the update:
listView1.Enabled = false;
listView1.Items.Clear();
foreach (var item in newData)
{
listView1.Items.Add(new ListViewItem(item));
}
listView1.Enabled = true;
If it doesn't work, please provide a minimal reproducible example Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.