protected void Page_Load(object sender, EventArgs e) { Basket basket = AbleContext.Current.User.Basket; // BIND NONSHIPPING ITEMS IList <BasketItem> nonShippingItems = AbleCommerce.Code.BasketHelper.GetNonShippingItems(basket); if (nonShippingItems.Count > 0) { nonShippingItems.Sort(new BasketItemComparer()); NonShippingItemsPanel.Visible = true; NonShippingItemsGrid.DataSource = nonShippingItems; NonShippingItemsGrid.DataBind(); NonShippingItemsGrid.Columns[2].Visible = this.ShowSku; //HIDE THE COLUMNS BASED ON SETTING NonShippingItemsGrid.Columns[3].HeaderText = TaxHelper.TaxColumnHeader; NonShippingItemsGrid.Columns[3].Visible = TaxHelper.ShowTaxColumn && this.ShowTaxes; NonShippingItemsGrid.Columns[4].Visible = this.ShowPrice; NonShippingItemsGrid.Columns[6].Visible = this.ShowTotal; } else { NonShippingItemsPanel.Visible = false; } }
private void BindGrids() { EditShipmentsGrid.DataSource = _Order.Shipments; EditShipmentsGrid.DataBind(); IList <OrderItem> nonShippingItems = OrderHelper.GetNonShippingItems(_Order); if (nonShippingItems.Count > 0) { NonShippingItemsGrid.DataSource = nonShippingItems; NonShippingItemsGrid.DataBind(); } else { NonShippingItemsPanel.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { Basket basket = AbleContext.Current.User.Basket; // BIND NONSHIPPING ITEMS IList <BasketItem> nonShippingItems = AbleCommerce.Code.BasketHelper.GetNonShippingItems(basket); if (nonShippingItems.Count > 0) { nonShippingItems.Sort(new BasketItemComparer()); NonShippingItemsPanel.Visible = true; NonShippingItemsGrid.DataSource = nonShippingItems; NonShippingItemsGrid.DataBind(); } else { NonShippingItemsPanel.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (this.Order != null) { //BIND NONSHIPPING ITEMS IList <OrderItem> nonShippingItems = AbleCommerce.Code.OrderHelper.GetNonShippingItems(this.Order); if (nonShippingItems.Count > 0) { NonShippingItemsGrid.DataSource = nonShippingItems; NonShippingItemsGrid.DataBind(); } else { NonShippingItemsPanel.Visible = false; } } else { NonShippingItemsPanel.Visible = false; } }