protected void RemoverDetalleClick_Click(object sender, EventArgs e) { Evaluacion evaluaciones = ViewStateEvaluaciones(); GridViewRow row = (sender as Button).NamingContainer as GridViewRow; evaluaciones.RemoverDetalle(row.RowIndex); ViewState[KeyViewState] = evaluaciones; this.BindGrid(); }
protected void RemoveLinkButton_Click(object sender, EventArgs e) { if (GridView.Rows.Count > 0 && GridView.SelectedIndex >= 0) { Evaluacion evaluacion = new Evaluacion(); evaluacion = (Evaluacion)ViewState["Evaluacion"]; GridViewRow row = (sender as Button).NamingContainer as GridViewRow; evaluacion.RemoverDetalle(row.RowIndex); ViewState["Evaluacion"] = evaluacion; this.BindGrid(); } }