Unselect a listviewitem

0
0

If I call ListView.Items.RemoveAt(i) to remove a selected  item from a listview, it automatically selects the next item. I don’t want it to. How do I prevent that from happening, or make it unselect the current item?

I tried  this but it didn’t work.

 

Application.Update(lvIssues)
If Me.lvIssues.SelectedItems.Count > 0 Then
Me.lvIssues.SelectedItems(0).Selected = False
End If

 

 

 

  • You must to post comments
0
0

Hi Andrew,

can´t reproduce, can you please share a test sample ?

Best regards
Frank

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.