I wanna bind atleast 30,000 records in a gridview from a sqlserver table. I want to bind only 50 records at a time with grid view. The grid has also paging and when I click next page then next 50 records should be shown and another next page's click another 50 records.
How can I optimize this thing. I want that If 30,000 records are binding then grid should be work as binded 50 records.
Thanks,
Best Answer
There are many ways of doing so as others suggested. I would like to add some more to that
a) Handling from the backend (This is how I am doing in my current project)
2) If you are using dotnet version 3.0+ you can take help of linq's Take() and Skip()methods