protected void GridViewCheckOut_RowDeleting(object sender, GridViewDeleteEventArgs e) { string ItemID = Convert.ToString(GridViewCheckOut.DataKeys[e.RowIndex].Values[0]); List <InventoryCatalogue> ic = (List <InventoryCatalogue>)Session["CartList"]; List <InventoryCatalogue> icNew = RequisitionLogic.DeleteOrder(ic, ItemID); GridViewCheckOut.DataSource = icNew; GridViewCheckOut.DataBind(); Session["CartList"] = icNew; Response.Redirect("~/DepartmentEmployee/ViewCatalogue.aspx"); }