Click here to Skip to main content
15,885,979 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have 2 grid-views which fetches 1000s of data's from database on the basis of selection. When it have few records say 100s its showing immediately.
But when I need to fetch bulk of records its not showing. someone please help me.

What I have tried:

i thought of using repeater but Iam not sure is it possible to show tabular format data in repeater.
Posted
Updated 16-Jun-16 2:31am

Simple answer: don't.

The user isn't going to want to see thousands of records on a single page. Even if they tell you that's what they want, it's not. There's no way anyone is going to sit and work their way through a thousand records to find the one they want.

Add more filters, and use paging to break the results up into manageable chunks:
GridView Examples for ASP.NET 2.0: Paging and Sorting the GridView's Data[^]
Paging in a GridView Web Server Control[^]
 
Share this answer
 
The obvious solution to to implement paging in your grids instead of trying to show thousands of records all at once.

You grab only the number of records you can display at one time, like 20.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900