Esempio n. 1
0
    private void BindBanchDropDown()
    {
        DataTable dtBranch = maintenanceUtils.GetKPIBranches();

        ddlBrLocation.DataSource     = dtBranch;
        ddlBrLocation.DataTextField  = "BranchDesc";
        ddlBrLocation.DataValueField = "Branch";
        ddlBrLocation.DataBind();
        ListItem item = new ListItem("     ---Select---     ", "");

        ddlBrLocation.Items.Insert(0, item);
    }
Esempio n. 2
0
    private void BindBanchDropDown()
    {
        DataTable dtBranch = formMessages.GetKPIBranches();

        ddlLocation.DataSource     = dtBranch;
        ddlLocation.DataTextField  = "BranchDesc";
        ddlLocation.DataValueField = "Branch";
        ddlLocation.DataBind();

        ddlSearchLocation.DataSource     = dtBranch;
        ddlSearchLocation.DataTextField  = "BranchDesc";
        ddlSearchLocation.DataValueField = "Branch";
        ddlSearchLocation.DataBind();

        ddlLocation.Items.Insert(0, new ListItem("ALL", ""));
        ddlSearchLocation.Items.Insert(0, new ListItem("ALL", ""));
    }