protected void GridRenuncia_RowDeleting(object sender, GridViewDeleteEventArgs e) { string DNI = txtdniPe.Text; GridViewRow r = GridRenuncia.Rows[e.RowIndex]; Label codi = (r.FindControl("lblcodigo") as Label); clsResoluciones cl = new clsResoluciones(); cl.delete_resoluciones(Convert.ToInt32(codi.Text)); GridRenuncia.EditIndex = -1; this.listar_liquidacion(DNI); }