日期:2014-05-18  浏览次数:20795 次

怎么让DATASET数据在DATAGRIDVIEW中显示?
C# code
 SqlConnection thisConnection = new SqlConnection(
               @"Server=CVRE1WTZRSTAGNW\SQLSERVER2008;Integrated Security=True;" +
           @"Database=northwind");

            DataSet thisDataSet = new DataSet();

            SqlDataAdapter custAdapter = new SqlDataAdapter(
                "SELECT * FROM Customers", thisConnection);
            custAdapter.Fill(thisDataSet, "Customers");

            dataGridView1.DataSource = ...


请问该怎么写?
谢谢。

------解决方案--------------------
d我记得好像是 DataGridView1.DataSource = thisDataSet.DataTable[0];
------解决方案--------------------
dataGridView1.DataSource = thisDataSet.DataTable[0];