A.
DataSet ds=new DataSet () dataGridView1.DataSource= ds.Tables.Item(Index)
B.
DataTable dt=new DataTable() dataGridView1.DataSource=dt
C.
DataSet ds=new DataSet () dataGridView1.DataSource = ds.Tables["表名"]
D.
DataSet ds=new DataSet () dataGridView1.DataSource = ds dataGridView1.DataMember = "表名"