设置ListView的属性FullRowSelect =true就可以啦
listview.FullRowSelect = true;
或者在窗体设计器里面修改
设置FullRowSelect为true
//在listview的SelectedIndexChanged中写下
private void listView1_SelectedIndexChanged(object sender, EventArgs e)
{
foreach (int i in listView1.SelectedIndices)
{
listView1.Items[i].Selected = true;
}
}