Gridview Paging Problem.

Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Thread Solved
Reply

Join Date: May 2006
Posts: 4
Reputation: karkar_87 is an unknown quantity at this point 
Solved Threads: 0
karkar_87 karkar_87 is offline Offline
Newbie Poster

Gridview Paging Problem.

 
0
  #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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 206
Reputation: plazmo is an unknown quantity at this point 
Solved Threads: 16
plazmo's Avatar
plazmo plazmo is offline Offline
Posting Whiz in Training

Re: Gridview Paging Problem.

 
0
  #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 5:32 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 4
Reputation: karkar_87 is an unknown quantity at this point 
Solved Threads: 0
karkar_87 karkar_87 is offline Offline
Newbie Poster

Re: Gridview Paging Problem.

 
0
  #3
Oct 4th, 2006
Thanks plazmo,

I have manage to solve it.

I just rebind accordingly in my function.

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 116
Reputation: bhavna_816 is an unknown quantity at this point 
Solved Threads: 0
bhavna_816 bhavna_816 is offline Offline
Junior Poster

Re: Gridview Paging Problem.

 
0
  #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 Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC