private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { MessageBox.Show(e.RowIndex.ToString()); }