protected void Load_Units() { DataTable dt = objKPI.Get_Units(txtUnitSearch.Text); GridViewUnits.DataSource = dt; GridViewUnits.DataBind(); }
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")); }