GridView sorting doesn't work when I Enable Caching in Custome Paging and sorting
问题 I have a GridView that use a stored procedure for custom paging and sorting . It's OK and works fine (Both paging and sorting) , But the problem is when i Enable Caching in ObjectDataSource like : EnableCaching="True" It properly cache every page that the user visit , But at this case when the user want to sort it raise an error(While that works fine if EnableCaching ="False" : The data source 'ObjectDataSource1' does not support sorting with IEnumerable data. Automatic sorting is only