The data source does not support server-side data paging.

Error :  The data source does not support server-side data paging.

Description:  Error message occure while binding the result set to the Gridview using LINQ Query as like below

gvDetails.DataSource = details

Reason : We cant use an IQueryable object to data bind to a GridView and still use Paging and Sorting.

we must return a List to the GridView using the ToList() method.
Solution:  In that scenario we want to add .ToList() as like below

                         gvDetails.DataSource = details.ToList();

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.