public string GetReturnString(DataTable tempDT, int tempColumn)
                  {
                      string tempStr = "";
                      if (!object.Equals(tempDT, null))
                      {
                          if (tempDT.Rows.Count > 0)
                          {
                              for (int i = 0; i < tempDT.Rows.Count; i++)
                     {
                                  if (tempColumn > tempDT.Columns.Count)
                                      tempColumn = tempDT.Columns.Count;
                                  for (int c = 0; c <tempColumn ;c++ )
                                  {
                                      tempStr += Common.StringOperator.GetRightString(tempDT.Rows[i][c]) + ",";
                                  }
                                  tempStr = tempStr.TrimEnd(',');
                                  tempStr += "~$~";
                     }
                             
                          }
                          else
                          {
                              tempStr = "null";
                          }
                      }
                      else
                      {
                          tempStr = "null";
                      }
                      return tempStr;
                  }
          posted on 2011-01-25 09:38 sanmao 閱讀(212) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 财经| 家居| 腾冲县| 奈曼旗| 台北市| 新龙县| 北票市| 邓州市| 凯里市| 镇原县| 衢州市| 衡阳县| 陆川县| 墨竹工卡县| 罗江县| 什邡市| 黑水县| 安远县| 永吉县| 邯郸市| 苍溪县| 宜州市| 厦门市| 和田县| 绥宁县| 海兴县| 澄迈县| 珲春市| 灵台县| 渝北区| 霍林郭勒市| 突泉县| 稻城县| 商洛市| 浑源县| 榆树市| 亳州市| 苏州市| 东兰县| 云安县| 冕宁县|