keeping checkbox check when page changes

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 5
Reputation: nadineatwaroo is an unknown quantity at this point 
Solved Threads: 0
nadineatwaroo nadineatwaroo is offline Offline
Newbie Poster

keeping checkbox check when page changes

 
0
  #1
Feb 25th, 2009
Hey all!

I have a gridview with multiple page, when i click on a check box in one page and proceed to the next page and click another check box in the previous page when I go back to the inital page the first check box click is cleared as if it wasnt selected, how can i save what was click when i move from page to page? Does pageIndexChange have anyting to do with it?

Any assistance would be welcome!

Thanks
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: bcasp is an unknown quantity at this point 
Solved Threads: 10
bcasp bcasp is offline Offline
Light Poster

Re: keeping checkbox check when page changes

 
0
  #2
Feb 25th, 2009
Is whether or not the checkbox is checked tied to a field in the database?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,336
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 163
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: keeping checkbox check when page changes

 
0
  #3
Feb 25th, 2009
By browser 'back' button or by navigation form buttons, it makes a difference how you navigate
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 5
Reputation: nadineatwaroo is an unknown quantity at this point 
Solved Threads: 0
nadineatwaroo nadineatwaroo is offline Offline
Newbie Poster

Re: keeping checkbox check when page changes

 
0
  #4
Feb 26th, 2009
Yes the checkbox is binded to a field in a table of a db. It is being updated but only when you stay on one page and click accept . So selection would have to do by page by page and then click accept for each page. But i want the manager to search through the list of pages select which ever check box and click accept once
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 5
Reputation: nadineatwaroo is an unknown quantity at this point 
Solved Threads: 0
nadineatwaroo nadineatwaroo is offline Offline
Newbie Poster

Re: keeping checkbox check when page changes

 
0
  #5
Feb 26th, 2009
i am navigating by clickin on the page numbers not the browser back button.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 45
Reputation: bcasp is an unknown quantity at this point 
Solved Threads: 10
bcasp bcasp is offline Offline
Light Poster

Re: keeping checkbox check when page changes

 
0
  #6
Feb 26th, 2009
Would it be possible for you to just update the value in the database that's bound to the checkbox on the paging event?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
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