找到tables[0]数据字段aaa全部内容ds.tables[0].Rows[0]?

解决方案 »

  1.   

    ds.tables[0].Select()来实现
    大概是ds.tables[0].Select("aaa")
      

  2.   

    DbObject db=new DbObject ();

    DataSet ds =db.GetDS("select aaa from tablename);//从数据库中查找记录函数

    if(ds!=null && ds.Tables.Count >0)
          this.txtUserName.Text = ds.Tables[0].Rows[0]["aaa"].ToString();
    else
    return null;
      

  3.   

    我要的结果是
    aaa
    1
    2
    3
    4
    5
    6谢谢
      

  4.   

    ds.Tables[0].Rows[行索引][列索引]
      

  5.   

    ds.Tables[0].Rows[行索引][列索引]这样写只能返回一条字段,也就是
    1
      

  6.   

    v192(人都是環境逼出來的,所以往死裏逼我吧)  就是正确的哟ds.tables[0].Select("aaa")
      

  7.   

    娘的……我第一个就写出来了方法,还问……郁闷,当我吃玻璃长大的?====================================
    筛选表达式“aaa”的计算结果不是布尔值项。
      

  8.   

    1.ds.Tables[0].Rows[行索引][列索引]string[] cell=new string[];
    for(int i=0;i<ds.Tables[0].Rows.Count;i++)
    {
       cell[i]=ds.ds.Tables[0].Rows[行索引][i];
    }
    这样就写进数组啦
    2.ds.Tables[0].Columns["aaa"];
    你看看要哪种,