You need to determine the column by its position:
private void listView_Click(object sender, EventArgs e)
{
Point mousePos = listView.PointToClient(Control.MousePosition);
ListViewHitTestInfo hitTest = listView.HitTest(mousePos);
int columnIndex = hitTest.Item.SubItems.IndexOf(hitTest.SubItem);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…