Exemple #1
0
    protected void GridView_Criteria_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        int    ID           = UDFLib.ConvertToInteger(GridView_Criteria.DataKeys[e.RowIndex].Value.ToString());
        string Criteria     = e.NewValues["Criteria"].ToString();
        int    Cat_ID       = 0;
        int    Grading_Type = UDFLib.ConvertToInteger(e.NewValues["Grading_Type"].ToString());

        DropDownList ddlCategory_Name = (DropDownList)GridView_Criteria.Rows[e.RowIndex].FindControl("ddlCategory_Name");

        if (ddlCategory_Name != null)
        {
            Cat_ID = UDFLib.ConvertToInteger(ddlCategory_Name.SelectedValue);
        }

        BLL_Crew_Evaluation.UPDATE_Criteria(ID, Criteria, Cat_ID, Grading_Type, GetSessionUserID());

        GridView_Criteria.EditIndex = -1;
        Bind_QuestionBank();
    }