I\'ve tried the below code and it sets the flag properly but it doesn\'t work.
foreach (var item in lvList.Items) { ListViewItem lvi = (ListViewItem)lvList.It