示例#1
0
 private void FilgirdViewMerchantDetail(string eventtxt, int merchantid)
 {
     _datatable = new DataTable();
     _datatable = _bamermng.SelectMerchantDetail(eventtxt, merchantid);
     gvMerchantDetail.DataSource = _datatable;
     gvMerchantDetail.DataBind();
 }
 private void FillMarchantInfoGridView(int Loginid)
 {
     _bomermng.Event = "GETWITHID";
     _bomermnglist = _bamermng.SelectMerchantDetail(Loginid, _bomermng);
     int tmp = 0;
     DataTable _table = new DataTable();
     _table = Common.LINQToDataTable(_bomermnglist);
     dgvMerchantProfile.Rows.Clear();
     foreach (DataRow row in _table.Rows)
     {
         dgvMerchantProfile.Rows.Add();
         dgvMerchantProfile.Rows[tmp].Cells[0].Value = Convert.ToString(row["MerchantId"]);
         dgvMerchantProfile.Rows[tmp].Cells[1].Value = Convert.ToString(row["EndDate"]);
         dgvMerchantProfile.Rows[tmp].Cells[2].Value = Convert.ToString(row["MerchantName"]);
         dgvMerchantProfile.Rows[tmp].Cells[3].Value = Convert.ToString(row["UserName"]);
         dgvMerchantProfile.Rows[tmp].Cells[4].Value = Convert.ToString(row["MerchantLevel"]);
         tmp++;
     }
 }