コード例 #1
0
        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            string temp = TxtSearch.Text;

            GridViewAddRequest.DataSource = requisitionLogic.SearchBy(temp);
            GridViewAddRequest.DataBind();
        }
コード例 #2
0
        protected void BindGrid()
        {
            InventoryLogic            il       = new InventoryLogic();
            List <InventoryCatalogue> itemList = InventoryLogic.GetAllCatalogue().Where(x => x.Discontinued != "Y").ToList();

            GridViewAddRequest.DataSource = itemList;
            GridViewAddRequest.DataBind();
        }