473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Bulk data in grid view [ASP.Net]

I need to show 1 lakh record in my gridview.... If i use data adapter
it will take more time to fill the dataset itself....

What will be the best way...

I dont think so only with paging we can solve this performance issue...

Tell me the best way of doing this....

Thanks

Feb 24 '06 #1
5 2886

The way I do it is this:

Fill a dataset with 100,000 records.

On the pageload (and not post back)
I create the DataSet .... and then cache the dataset in the session.
I bind the DataSet to a
<asp:ObjectDataSource>

object.

Then set the gridview source to the the ObjectDataSource.

On paging and/or sorting calls...I pull the cached DataSet instead of a
fresh hit.


"Sudha Pune" <su***************@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I need to show 1 lakh record in my gridview.... If i use data adapter
it will take more time to fill the dataset itself....

What will be the best way...

I dont think so only with paging we can solve this performance issue...

Tell me the best way of doing this....

Thanks

Feb 24 '06 #2
can u explain where u do the caching in session and how u r using it
back...

Feb 25 '06 #3

sloan napisal(a):
The way I do it is this:

Fill a dataset with 100,000 records.

On the pageload (and not post back)
I create the DataSet .... and then cache the dataset in the session.
I bind the DataSet to a
<asp:ObjectDataSource>

object.

Then set the gridview source to the the ObjectDataSource.

On paging and/or sorting calls...I pull the cached DataSet instead of a
fresh hit.


Hi Sloan.

Could you tell me how do you bind DataSet from Session to
ObjectDataSource?

Thanks,
misiek

Feb 27 '06 #5
But for loading 1 Lakh records first time will take too much time na....

Mar 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tperovic | last post by:
Using SS2K, I'm getting the following error while bulk inserting: Column 'warranty_expiration_date' cannot be modified because it is a computed column. Here is my bulk insert statement: ...
7
by: iqbal | last post by:
Hi all, We have an application through which we are bulk inserting rows into a view. The definition of the view is such that it selects columns from a table on a remote server. I have added the...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
6
by: pk | last post by:
Sorry for the piece-by-piece nature of this post, I moved it from a dormant group to this one and it was 3 separate posts in the other group. Anyway... I'm trying to bulk insert a text file of...
16
by: Philip Boonzaaier | last post by:
I want to be able to generate SQL statements that will go through a list of data, effectively row by row, enquire on the database if this exists in the selected table- If it exists, then the colums...
3
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
3
by: vineetbatta | last post by:
I have Custom Data class which stores data about single customer and then i store that customer objects in arraylist as shown below. Customer custdata = null; // Custom Data class for 1 customer...
7
by: RolfHerbert | last post by:
Hi all, Source code below. I am using an sqldatasorce to populate a datagrid. I am using datakeyIds. I am interested in two keys which I have added to the datakeyids, however if either of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.