c#点击获取listview单元格的数据或值

c#点击获取listview单元格的数据或值

  private void listView_zhimo_info_Click(object sender, EventArgs e)
        {
            Point tmpPoint = listView_zhimo_info.PointToClient(Cursor.Position);
            ListViewItem.ListViewSubItem subitem = listView_zhimo_info.HitTest(tmpPoint).SubItem;
            textBox_zimo_month.Text = subitem.Text;
            this.Size = new System.Drawing.Size(193, 209);
        }

 

posted @ 2022-03-08 13:13  txwtech  阅读(1065)  评论(0编辑  收藏  举报