Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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 13-Oct-12 19:20pm
Edited 13-Oct-12 19:21pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 14 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100