i have check boxes in last column of gridview1, when i check some checkBoxes of page index 1, and go to 2nd index to select some more items, and come back on 1 st index, i don't got any check box selected...
.
i don't want this.
how to prevent this,
i want that check boxes, remains selected when back to page index..
On Gridview1_PageIndexChanging grid Should not Reload..
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Ramchand RepalleRank #762 · 3K reputationPosted Nov 3, 2014, 3:36 AM EST
This link might be helpful to you, to achieve the checkbox state on multiple page index changes in a gridview.
http://www.codeproject.com/Articles/31849/Maintaining-States-of-Selected-CheckBoxes-in-Diffe
Thanks,
Ramchand
madhuri Gamane100 reputationPosted Nov 3, 2014, 7:53 PM EST
Vishal JadhavRank #2,563 · 545 reputationPosted Nov 3, 2014, 9:02 PM EST
Instead of using .NET's pagination you can use datatable.js
It will help you to maintain view state of grid(i.e. state of checkboxes in your case).
It will also decrease server overhead and server hits as it is a client side plugin.
Check it up.
Thanks.