private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frm_insert_Image frm_insert_Image = new frm_insert_Image(); frm_insert_Image.ROW = e.RowIndex; frm_insert_Image.COLUMN = e.ColumnIndex; //if (Convert.ToBoolean(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value)) //{ frm_insert_Image.QuestionImage.Text =Convert.ToString(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); //} frm_insert_Image.Show(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frm_insert_Image frm_insert_Image = new frm_insert_Image(); frm_insert_Image.ROW = e.RowIndex; frm_insert_Image.COLUMN = e.ColumnIndex; if (e.ColumnIndex == 1) { frm_insert_Image.Show(); } }