Click here to Skip to main content
13,093,097 members (68,344 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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
Updated 13-Oct-12 19:21pm

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 14 Oct 2012
Copyright © CodeProject, 1999-2017
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