日期:2014-05-17 浏览次数:21012 次
this.listView1.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.listView1_ItemChecked);
private void listView1_ItemChecked(object sender, ItemCheckedEventArgs e)
{
e.Item.Selected = e.Item.Checked;
}
Listview1.FullRowSelect=true;
for (int i = 0; i < listView1.CheckedItems.Count; i++)
{
listView1.CheckedItems[i].Checked = false;
listView1.CheckedItems[i].Selected = false;
}