private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { FormPaciente frm = Owner as FormPaciente; //FormMembresia frm = new FormMembresia(); frm.txtid.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString(); frm.txtnombre.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString(); frm.txtapellido.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString(); this.Close(); }
private void btnBusqueda_Click(object sender, EventArgs e) { FormPaciente fm = new FormPaciente(); AbrirFormEnPanel(fm); }