private void BindGrid() { List <ReorderItem> list = new List <ReorderItem>(); list = (List <ReorderItem>)Session["reorderList"]; GridView_reorderList.DataSource = list; GridView_reorderList.DataBind(); }
private void InitBindGrid() { List <ReorderItem> list = new List <ReorderItem>(); list = itemDAO.findItemList(); ReorderItem item = new ReorderItem(); for (int i = list.Count - 1; i >= 0; i--) { item = list[i]; if (item.ReorderLevel <= item.QtyOnHand) { list.RemoveAt(i); } } Session["reorderList"] = list; GridView_reorderList.DataSource = list; GridView_reorderList.DataBind(); }