protected void GridViewCatalogue_RowEditing(object sender, GridViewEditEventArgs e) { GridViewCatalogue.EditIndex = e.NewEditIndex; List <InventoryCatalogue> cList = (List <InventoryCatalogue>)Session["CatalogueList"]; GridViewCatalogue.DataSource = cList; GridViewCatalogue.DataBind(); }
protected void BindGrid() { List <InventoryCatalogue> cList = InventoryLogic.GetAllCatalogue(); GridViewCatalogue.DataSource = cList; GridViewCatalogue.DataBind(); Session["CatalogueList"] = cList; }
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; }