C# ListView得到选中项及子项

private void listViewEx_MouseClick(object sender, MouseEventArgs e)
{
ListViewItem lv = listViewEx.GetItemAt(e.X, e.Y);

MessageBox.Show(lv.GetSubItemAt(e.X,e.Y).Text);
}

你可能感兴趣的:(C# ListView得到选中项及子项)