日期:2014-05-18 浏览次数:21337 次
void dataGridView1_DoubleClick(object sender, EventArgs e) { Point hit = this.dataGridView1.PointToClient(Cursor.Position); DataGridView.HitTestInfo hitTest = this.dataGridView1.HitTest(hit.X, hit.Y); MessageBox.Show(hitTest.Type + " Row=" + hitTest.RowIndex + " Col" + hitTest.ColumnIndex); }