Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi,

I have a small question,

GridView having the CheckBoxes in side of grid.

I click (mark) some CheckBoxes. Then forwarded the another page.
Again get back. The check marked box are available or not?
if available, why?
Posted
v2
Comments
[no name] 4-Jul-13 15:34pm    
You could probably just try it and see then you would have your answer a lot faster.

1 solution

When you move to any other Page, the page Posts Back to Server, so the state of Page is lost.
That's why the checked status of CheckBoxes are lost.

To resolve this, you need to store the checked status in Session.
Refer - Maintaining State of CheckBoxes While Paging in a GridView Control[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900