protected void gvAddMunicipio_RowUpdating(object sender, GridViewUpdateEventArgs e) { Label id = gvAddMunicipio.Rows[e.RowIndex].FindControl("lbl_IDAddMuni") as Label; TextBox name = gvAddMunicipio.Rows[e.RowIndex].FindControl("txt_NameAddMuni") as TextBox; datoMuni.IDMunicipio = Convert.ToInt32(id.Text); datoMuni.Nombre = name.Text; ejecMuni.modificarInfoMuni(datoMuni); gvAddMunicipio.EditIndex = -1; LlenarGVMunicipio(Convert.ToInt32(ddlEstadoAddMunicipio.SelectedValue)); LLenarDDLMunicipioAlumno(Convert.ToInt32(ddlEstadoEmp.SelectedValue)); ActualizarUPDatos(); }