SqlDataAdapter sda=new SqlDataAdapter();
sda.SelectCommand=cmd;
con.Open();
DataSet ds=new DataSet()
sda.fill(ds,"student");
cn.Close();
this.GridView1.DataSource=ds;
this.GridView1.DataBind();
sda.Fill(ds);表示把SqlDataAdapter填充到ds,默认order
sda.fill(ds,10,20,"tb") 就是把selectcomand返回的所有数据中从第10条开始,连续取20条填充到ds的tb表中
sda.Fill(ds,"order");表示把selectcomand返回的所有数据填充到ds ,并起一个名字order