把两个table放在一个Repeater中显示

 1 DataTable dt;
 2 DataTable dt1;
 3 
 4 
 5   HLoanApplyInfo applyInfo = HLoanApplyBll.GetModelById(FLoanID);
 6                     FLoanID2 = applyInfo.FEvaluationID;
 7                     dt1 = new HAttachmenteBll().GetList(null, FLoanID2, FParentID, FID);
 8 
 9 
10  dt = new HAttachmenteBll().GetList(null, FLoanID, FParentID, FID);
11                         if (FID == 4 && FSelCreditID == 400002|| FID == 4 && FSelCreditID == 4000010)
12                         {
13                             foreach (DataRow row2 in dt1.Rows)//将两个table合并到一起显示
14                             {
15                                 DataRow rowTmp = dt.NewRow();
16                                 rowTmp.ItemArray = row2.ItemArray;
17                                 dt.Rows.Add(rowTmp);
18                             }
19                             rptPho.DataSource = dt;
20                             rptPho.DataBind();
21                         }
22                         else
23                         {
24                             rptPho.DataSource = dt;
25                             rptPho.DataBind();
26                         }

 

posted @ 2017-01-04 10:59  夕阳炒饭的颜色  阅读(262)  评论(0编辑  收藏  举报