private void button6_Click(object sender, EventArgs e) { try { string idalumno = gridView1.GetFocusedRowCellValue("id_persona").ToString(); string nombre = gridView1.GetFocusedRowCellValue("nombre_solo").ToString(); Form_detalle_expediente Form_detalle_expediente1 = new Form_detalle_expediente(idalumno, nombre); Form_detalle_expediente1.ShowDialog(); } catch { MessageBox.Show("No existen Alumnos en este Estado.", "Error al ver Expediente", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void button6_Click(object sender, EventArgs e) { try { string idalumno = gridView1.GetFocusedRowCellValue("id_persona").ToString(); string nombre = gridView1.GetFocusedRowCellValue("nombre_solo").ToString(); Form_detalle_expediente Form_detalle_expediente1 = new Form_detalle_expediente(idalumno, nombre); Form_detalle_expediente1.ShowDialog(); } catch { MessageBox.Show("No existen Alumnos en este Estado.", "Error al ver Expediente", MessageBoxButtons.OK, MessageBoxIcon.Information); } }