C# ListView 无刷新删除选中列

ListView.SelectedIndexCollection numToRemove = lvSet.SelectedIndices;
try
{
   int j = 0;
   foreach (int i in numToRemove)
   {
    lvSet.Items.RemoveAt(i - j);
        j = j + 1;
    }
}
catch (Exception ex)
{
      MessageBox.Show(ex.Message);
}

你可能感兴趣的:(ListView,C#,职场,休闲)