string tmp = myDs.Tables["table_test"].Rows[0]["test1"].ToString();

解决方案 »

  1.   

    for i=0 to myDs.Tables("table_test").rows.count
    ...
    next i
      

  2.   

    int count=myDs.Tables["table_test"].Rows.Count;
    string[] tmp=new string[count];
    for(int i;i<count;i++)
    {
      tmp[i]=myDs.Tables["table_test"].Rows[i]["test1"].ToString();
    }还没试过,祝好运
      

  3.   

    同样道理,我也来贴一贴  :)DataTable dt = myDs.Table[0];
    int TotalCount = dt.Rows.Count
    for (int i = 0; i < TotalCount ;i++)
    {
       ** += dt.Rows[i]["test1"].ToString();
    }
    ...............