Click here to Skip to main content
15,881,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends...

In my application show the value in gridview,it contain check box in each row.

Paging also set for gridview.

My problem is when i am select any row in first page,then click second page ,automatically deselected the items in first page,

any one give me idea.
Posted
Updated 23-Jul-12 2:20am
v2
Comments
Vani Kulkarni 23-Jul-12 3:01am    
Your question is unclear. Please elaborate.

1 solution

On every checkbox changed event you need to add those values to a list and to store in viewstate or session. In any event like paging and sorting happen you need to retrieve those values and to check those checkboxes.

Refer link
Maintaining States of Selected CheckBoxes in Different Pages inside the GridView[^]
 
Share this answer
 
Comments
_Amy 23-Jul-12 8:42am    
Absolutely right. And every time he need to check the data in list(Instead of list he can use HashTable for key value pair). Anyway my +5!
bhagirathimfs 23-Jul-12 9:42am    
My +5!

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