Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        protected void BindGrid()
        {
            List <InventoryCatalogue> cList = InventoryLogic.GetAllCatalogue();

            GridViewCatalogue.DataSource = cList;
            GridViewCatalogue.DataBind();
            Session["CatalogueList"] = cList;
        }
Ejemplo n.º 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;
        }