foreach(DataRow dr in ds.Tables[0].DefultView)
{
    this.TextBox1.Text = dr["字段名"].Tostring();
}

解决方案 »

  1.   

    ds.Tables[0].Columns[i].ColumnName
    ds.Tables[0].Rows[i][""].ToString()值
      

  2.   

    ds.Tables[0].Columns["字段名"].ColumnName
      

  3.   

    ds.Tables[0].row[行数]["字段名称"].tostring()
      

  4.   

    ds.Tables[0].rowS[行数]["字段名称"].tostring()少个s
    呵呵
      

  5.   


    TextBox.Text=ds.Tables[0]["列名"].ToString()
      

  6.   

    foreach(DataRow dr in ds.Tables[0].DefultView)
    {
        this.TextBox1.Text = dr["字段名"].Tostring();
    }