注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 用了十年的QQ号,第二次被..
 帮助

怎样用c#读取dataset的某个表的所有记录.


2008-03-06 23:14:02
 标签:c# 记录 dataset   [推送到技术圈]

using   System.Data;  
   
  public   class   sample  
  {  
        for   (int   i=0;   i<ds.Tables[0].Rows.Count;i++)  
        {  
              for   (int   j=0;j<ds.Tables[0].Columns.Count;j++)  
              {  
                    Console.WriteLine(ds.Tables[0].Rows[i][j].ToString());  
              }  
        }  
        Console.ReadLine();  
  }




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: