protected void BtnSearch_Click(object sender, EventArgs e) { string temp = TxtSearch.Text; GridViewAddRequest.DataSource = requisitionLogic.SearchBy(temp); GridViewAddRequest.DataBind(); }
protected void BindGrid() { InventoryLogic il = new InventoryLogic(); List <InventoryCatalogue> itemList = InventoryLogic.GetAllCatalogue().Where(x => x.Discontinued != "Y").ToList(); GridViewAddRequest.DataSource = itemList; GridViewAddRequest.DataBind(); }