Bulk data in grid view [ASP.Net]

S

Sudha Pune

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
 
S

sloan

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

misiek

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,999
Latest member
MakersCBDGummiesReview

Latest Threads

Top