private void lv_MouseUp(object sender, MouseEventArgs e)
{
ListViewItem item = lv.GetItemAt(e.X, e.Y);
if (item != null)
{
System.Windows.Forms.ListViewItem.ListViewSubItem subitem = item.GetSubItemAt(e.X, e.Y);
if (subitem != null)
strColName = (lv.Columns[item.SubItems.IndexOf(subitem)].Text);
}
}
ListView获取双击行
最新推荐文章于 2023-05-05 16:46:47 发布