foreach (ListViewItem i in listView1.SelectedItems)
{
listView1.Items.Remove(i);
}
//将选中的所有行删除~~
private void button1_Click(object sender, EventArgs e)
{
if (this.listView1.SelectedItems != null)
{
//如果提供多选,则需要循环
listView1.Items.Remove(listView1.SelectedItems[0]);
}
}
用两个LISTVIEW进行嵌套
另外,团IDC网上有许多产品团购,便宜有口碑