Exemple #1
0
    protected void Load_CategoryList()
    {
        DataTable dt = BLL_Crew_Interview.Get_CategoryList(txtfilter.Text);

        GridView_Category.DataSource = dt;
        GridView_Category.DataBind();
    }
Exemple #2
0
    protected void Load_CategoryList(DropDownList ddlCategory)
    {
        DataTable dt = BLL_Crew_Interview.Get_CategoryList("");

        ddlCategory.DataSource = dt;
        ddlCategory.DataBind();
        ddlCategory.Items.Insert(0, new ListItem("-Select All-", "0"));
    }
Exemple #3
0
    protected void GridView_Criteria_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        try
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                int ID         = UDFLib.ConvertToInteger(DataBinder.Eval(e.Row.DataItem, "Grading_Type").ToString());
                int Grade_Type = UDFLib.ConvertToInteger(DataBinder.Eval(e.Row.DataItem, "Grade_Type").ToString());

                RadioButtonList rdo = (RadioButtonList)e.Row.FindControl("rdoOptions");
                if (rdo != null)
                {
                    DataTable dt = BLL_Crew_Interview.Get_GradingOptions(ID);
                    rdo.DataSource = dt;
                    rdo.DataBind();
                }
                DropDownList ddlCategory_Name = (DropDownList)e.Row.FindControl("ddlCategory");
                if (ddlCategory_Name != null)
                {
                    DataTable dtCat = BLL_Crew_Interview.Get_CategoryList("");
                    ddlCategory_Name.DataSource = dtCat;
                    ddlCategory_Name.DataBind();
                    ddlCategory_Name.SelectedValue = DataBinder.Eval(e.Row.DataItem, "Category_ID").ToString();
                }

                if (Grade_Type == 2)
                {
                    TextBox txtAnswer = new TextBox();
                    txtAnswer.Text    = "Subjective Type";
                    txtAnswer.Enabled = false;
                    e.Row.Cells[3].Controls.Add(txtAnswer);
                }
            }
        }
        catch
        {
        }
    }