Esempio n. 1
0
 /// <summary>
 /// 控件邦定数据
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgListEdit_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
 {
     if ((e.Item.ItemType == ListItemType.Item) ||
         (e.Item.ItemType == ListItemType.AlternatingItem))
     {
         DataRowView myrow = ((DataRowView)e.Item.DataItem);
         UserControls.ManyCurrencyCost manycs = (UserControls.ManyCurrencyCost)e.Item.FindControl("Manycurrencycost1");
         if (manycs != null)
         {
             manycs.IsEditMode      = true;
             manycs.CashMessageCode = myrow["BiddingReturnCode"].ToString();
             manycs.LoadData();
         }
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 找到 Control
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>

        public UserControls.ManyCurrencyCost GetControl(int i)
        {
            UserControls.ManyCurrencyCost er = (UserControls.ManyCurrencyCost) this.dgListEdit.Items[i].FindControl("ManyCurrencyCost1");
            return(er);
        }