private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null) { dataGridView1.CurrentRow.Selected = true; Detalles dets = new Detalles(dataGridView1.Rows[e.RowIndex].Cells["ID"].FormattedValue.ToString()); dets.Show(); this.Hide(); } }
private void Edit_FormClosed(object sender, FormClosedEventArgs e) { Detalles detalles = new Detalles(ide); detalles.Show(); }