private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.CurrentCell.Value.ToString() == "详细") { frmCardList frm = new frmCardList((int)dataGridView1.Rows[e.RowIndex].Cells["iDDataGridViewTextBoxColumn"].Value); frm.ShowDialog(); } }