如标题

解决方案 »

  1.   

    ds.Table[0].Rows[i][j].tostring();
    正解,不过
    ds.Table[0].Rows[i][j].ToString();
      

  2.   

    ds.Table[0].Rows[i][j].ToString();
      

  3.   

    int i=0;
    while(i++<ds.Tables[0].Rows.Count)
    {
     DataRow oneRow=ds.Tables[0].Rows[i];
      for(int j=0;j<ds.Tables[0].Columns.Count;j++)
           str=oneRow[j].ToString();
      
    }
    表内数据 可能不为字符串形 可通过 Int32.Parse(str) 之类函数 来转换
      

  4.   

    ds.Table[0].Rows[i][j].tostring();
    ds.Table[0].Rows[i]["列名"].tostring();
    都可以
      

  5.   

    ds.Table[0].Rows[i][j].ToString();
    ds.Table[0].Rows[i][“列名”].ToString();
    都可以