I created a small routine to clean the checkboxes that are in my listview in C # windows forms. But this routine is not unchecking them. I wonder if I wrote something wrong or why it did not work. Code:
private void limpacheck()
{
foreach (ListViewItem item in lsvRecebeGrupoLayout.CheckedItems)
{
item.Checked = false;
}
}