User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 397,803 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,489 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 6688 | Replies: 3 | Solved
Reply
Join Date: May 2006
Posts: 4
Reputation: karkar_87 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
karkar_87 karkar_87 is offline Offline
Newbie Poster

Gridview Paging Problem.

  #1  
Oct 3rd, 2006
I need some help regarding Paging on a Gridview.

I have a few dropdownlists and textbox and a gridview. At first load, the gridview will be populated with data from the sql server. And, I did a search and it works for the first page. When I press the second page, it will be populated back to the database data which it should not be.

Is there anyway to retain my search results when I press subsequence page?

Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: Ohio
Posts: 204
Reputation: plazmo is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: Gridview Paging Problem.

  #2  
Oct 3rd, 2006
try storing it in your context.session.
ive always prefered to just hit the database again for each page.
just grab only enough each query to fill one page.
EDIT: sorry i just realized, that you may not be talking about asp.net oops.
in that case, fill a dataset up with the data you need, and pull data from that
Last edited by plazmo : Oct 3rd, 2006 at 4:32 pm.
Reply With Quote  
Join Date: May 2006
Posts: 4
Reputation: karkar_87 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
karkar_87 karkar_87 is offline Offline
Newbie Poster

Re: Gridview Paging Problem.

  #3  
Oct 4th, 2006
Thanks plazmo,

I have manage to solve it.

I just rebind accordingly in my function.

Thanks!
Reply With Quote  
Join Date: Sep 2006
Posts: 104
Reputation: bhavna_816 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
bhavna_816 bhavna_816 is offline Offline
Junior Poster

Re: Gridview Paging Problem.

  #4  
Mar 10th, 2008
Hi Plazmo, but i m not able to understand this...
I ahve a gridview and want to retain the data which is checked on the checkbox check button.
I want to retain this check when i goes to next page also...
How can I do it?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C# Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 6:14 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC