Example #1
0
    protected void Load_Units()
    {
        DataTable dt = objKPI.Get_Units(txtUnitSearch.Text);

        GridViewUnits.DataSource = dt;
        GridViewUnits.DataBind();
    }
Example #2
0
    private void BindUnits()
    {
        DataTable dt = objKPI.Get_Units("");

        ddlUOM.DataSource     = dt;
        ddlUOM.DataTextField  = "Unit_Name";
        ddlUOM.DataValueField = "Unit_Name";
        ddlUOM.DataBind();
        ddlUOM.Items.Insert(0, new ListItem("-SELECT-", "0"));
    }