SQL Server 2008
In my table I have millions of records.
Now when I try to bind all records in Gridview then It takes more time to fetch that all records.
If I want to Select only 10-10 records at a time
means in Gridview first I am on first page and it display first 10 records then when I go to next page
it display second 10 records likewise….
So how its possible? and Can I get total counts of that records in that store procedure?
You can create dynemic paging to load large data, can refer bellow links for help.
Custom Paging
Or
Custom Paging 2