I suggest you to build your grid view along with bootstrap data table plug-in.
https://datatables.net[
^]
This will automatically handle paging, sorting and filtering. Also very quick. Give it a try.
If you can't avoid asp.net view state try using bootstrap data table or else do paging instead of loading all data at once.