private void DataGrid_Show_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { try { DataGridViewRow row = DataGrid_Show.Rows[e.RowIndex]; if (Accion == "Monto") { FormMontoMatricula Form_Monto = Owner as FormMontoMatricula; Form_Monto.Fun_CargarDatos( (int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()), row.Cells["Nombre del Alumno"].Value.ToString()); } else if (Accion == "Gastos") { FormIngresoGastos Form_Ingr = Owner as FormIngresoGastos; Form_Ingr.Fun_CargarDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()), row.Cells["Nombre del Alumno"].Value.ToString()); } this.Close(); } catch (Exception) { } }
private void DataGrid_Show_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { try { DataGridViewRow row = DataGrid_Show.Rows[e.RowIndex]; if (Accion == "Gastos") { FormIngresoGastos Form_Ingr = Owner as FormIngresoGastos; Form_Ingr.Fun_CargarDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()), row.Cells["Nombre del Alumno"].Value.ToString()); } else if (Accion == "Vista_Entrevista") { VistaEntrevistaPadres Form_Ent = Owner as VistaEntrevistaPadres; Form_Ent.Fun_ExtraerDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()), row.Cells["Nombre del Alumno"].Value.ToString()); } else if (Accion == "PP") { Prueba Form_Ent = new Prueba(); Form_Ent.Fun_ExtraerDatos((int)Convert.ToDouble(row.Cells["Codigo"].Value.ToString()), row.Cells["Nombre del Alumno"].Value.ToString()); } this.Close(); } catch (Exception) { } }