I have a GridView that uses a stored procedure for user paging and sorting.
This works fine and works fine (both swap and sort). But the problem is when I Enable Caching in ObjectDataSource, for example:
EnableCaching="True"
It correctly caches every page the user visits. But in this case, when the user wants to sort, he throws an error (although this works fine if EnableCaching = "False":
The data source 'ObjectDataSource1' does not support sorting with IEnumerable data. Automatic sorting is only supported with DataView, DataTable, and DataSet.
what should i do to sort work when i enable caching.
Thank.
source
share