The data source does not support server-side data paging

后端 未结 8 1172
眼角桃花
眼角桃花 2020-11-29 07:20

I have a GridView on my screen and need it to allow paging.

Markup:



        
8条回答
  •  有刺的猬
    2020-11-29 07:51

    I've changed my code to this:

    public List ListofNewsTitle()
    {
        var query = from n in db.NewsEvents
                    orderby n.NewsDate descending
                    select n.NewsTitle;
        return query.ToList();        
    }
    

提交回复
热议问题