private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if ((e.ColumnIndex == 6) && (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)) { dtl = new Detail(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex - 1].Value); dtl.Show(); } }
private void btnCreateFam_Click(object sender, EventArgs e) { det = new Detail(); det.Show(); }