DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   Gridview Paging Problem. (http://www.daniweb.com/forums/thread56886.html)

karkar_87 Oct 3rd, 2006 3:30 am
Gridview Paging Problem.
 
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.

plazmo Oct 3rd, 2006 5:29 pm
Re: Gridview Paging Problem.
 
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

karkar_87 Oct 4th, 2006 2:24 am
Re: Gridview Paging Problem.
 
Thanks plazmo,

I have manage to solve it.

I just rebind accordingly in my function.

Thanks!

bhavna_816 Mar 10th, 2008 7:05 am
Re: Gridview Paging Problem.
 
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?


All times are GMT -4. The time now is 1:26 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC