コード例 #1
0
        protected void GridViewCatalogue_RowEditing(object sender, GridViewEditEventArgs e)
        {
            GridViewCatalogue.EditIndex = e.NewEditIndex;
            List <InventoryCatalogue> cList = (List <InventoryCatalogue>)Session["CatalogueList"];

            GridViewCatalogue.DataSource = cList;
            GridViewCatalogue.DataBind();
        }
コード例 #2
0
        protected void BindGrid()
        {
            List <InventoryCatalogue> cList = InventoryLogic.GetAllCatalogue();

            GridViewCatalogue.DataSource = cList;
            GridViewCatalogue.DataBind();
            Session["CatalogueList"] = cList;
        }
コード例 #3
0
        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            InventoryLogic            inventoryLogic = new InventoryLogic();
            string                    temp           = TxtSearch.Text;
            List <InventoryCatalogue> cList          = inventoryLogic.SearchBy(temp);

            GridViewCatalogue.DataSource = cList;
            GridViewCatalogue.DataBind();
            Session["CatalogueList"] = cList;
        }