给你一个例子吧:
SqlDataAdapter myCommand = new SqlDataAdapter("select * from Authors", myConnection);        DataSet ds = new DataSet();
        myCommand.Fill(ds, "Authors");        string str=MyDataGrid.DataSource=ds.Tables["Authors"].rows[][].tostring;