for( int i=0;i<ds.Tables["job"].Rows.Count;i++ )
   string key = ds.Tables["job"].Rows[i]["RegKeyword"].ToString();

解决方案 »

  1.   

    for(int i=0;i<ds.Tables["job"].Rows.Count-1;i++)
    {
      ds.Tables["job"].Rows[i]["RegKeyword"].ToString();
    }
      

  2.   

    循环读呀:
    for(int i=0;i<this.ds.Tables["job"].Rows.Count;i++)
    {
      string regkeyword=this.ds.Tables["job"].Rows[i]["RegKeyword"].ToString();
    }
      

  3.   

    for(int i=0;i<this.ds.Tables["job"].Rows.Count;i++)
    {
      string regkeyword=this.ds.Tables["job"].Rows[i]["RegKeyword"].ToString();
    }
      

  4.   

    用foreach也不错:
    foreach(DataRow row in this.ds.Tables["job"].rows)
    {
      string s=row["keyword"].ToString();
    }