把两个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 }
人的潜能是能够挖掘的,当你说太晚了的时候,你一定要谨慎,它可能是你退却的借口,没有谁能够阻止你成功,除了你自己,该炫自己的时候,千万别对自己手软!