コード例 #1
0
ファイル: MyGroupBuys.cs プロジェクト: uvbs/eshopSanQiang
 private void grdGroupBuyList_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)
 {
     if (e.Row.RowType == System.Web.UI.WebControls.DataControlRowType.DataRow)
     {
         FormatedMoneyLabel formatedMoneyLabel = (FormatedMoneyLabel)e.Row.FindControl("lblCurrentPrice");
         int groupBuyId      = System.Convert.ToInt32(this.grdGroupBuyList.DataKeys[e.Row.RowIndex].Value.ToString());
         int prodcutQuantity = int.Parse(System.Web.UI.DataBinder.Eval(e.Row.DataItem, "ProdcutQuantity").ToString());
         formatedMoneyLabel.Money = SubsitePromoteHelper.GetCurrentPrice(groupBuyId, prodcutQuantity);
     }
 }