Click here to Skip to main content
15,881,850 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a problem to show data in GRIDVIEW control, I have 2 lac records to display in gridview(with paging using code) but when I fired query to show data, there is shows only 40-50 thousands(not exact) of records, And I used Session to store datatable this session is used to datasource of gridview.

Please help me to sort out this problem.
Posted
Updated 13-Oct-12 19:21pm
v2

1 solution

You can fetch the data on-demand. Get data on pagination on the fly. You can use AJAX/XMLHttpRequest to get data from server. One of the jQuery plugin available:
MSDN: Slice and Dice OData with the jQuery DataTables Plug-In[^]
jQuery DataTables[^]


Further, I would not suggest you to store the data in Session. With so many number of records, you are just putting lots of memory pressure on webserver. Fetch data on demand or store in cache.
 
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