var groups=from r in db.tb1 order by r.snumber select r
------解决方案-------------------- 可以直接这样: gridview.datasource=(from s in db.table orderby s.snumber descending select s).Skip(页码*pagesize).Take(pagesize); gridview.databind();
------解决方案--------------------