Grid view Paging is not working with Linq Data source

I got an error when i try to use Grid view to show the Linq Data source, saying that The data source does not support server-side data paging, its not supporting with the pagination features.

To solve this i try to use the ToList() option of the linqdatasource, then its working fine.

So whenever we need to use pagination option in gridview or any other data controls then during data source setting we need to use linqDataSource.ToList() instead of just linqDataSource()