Example #1
0
 public override void DataBind()
 {
     base.Items.Clear();
     if (this.AllowNull)
     {
         base.Items.Add(new ListItem(string.Empty, string.Empty));
     }
     foreach (PaymentModeInfo info in SubsiteSalesHelper.GetPaymentModes())
     {
         base.Items.Add(new ListItem(Globals.HtmlDecode(info.Name), info.ModeId.ToString()));
     }
 }
Example #2
0
 public override void DataBind()
 {
     base.Items.Clear();
     if (this.AllowNull)
     {
         base.Items.Add(new System.Web.UI.WebControls.ListItem(string.Empty, string.Empty));
     }
     System.Collections.Generic.IList <PaymentModeInfo> paymentModes = SubsiteSalesHelper.GetPaymentModes();
     foreach (PaymentModeInfo current in paymentModes)
     {
         base.Items.Add(new System.Web.UI.WebControls.ListItem(Globals.HtmlDecode(current.Name), current.ModeId.ToString()));
     }
 }
Example #3
0
 private void BindData()
 {
     grdPaymentMode.DataSource = SubsiteSalesHelper.GetPaymentModes();
     grdPaymentMode.DataBind();
 }