DataSet ds = new DataSet();
adapter.Fill(ds, "base_custom");
this.GridView1.DataSource = ds;
this.GridView1.DataMember = "base_custom";
不加查询条件,在可以显示返回数据;在where中添加查询条件,GridView1不显示返回数据。
(xp下面没有问题,win7下不正常)