View Full Version : Check box column and datagrid paging.

Sep 15th, 2005, 12:29 PM

I have a check box template column in a datagrid. I am using paging (not custom paging). My problem is if I select some check box items and move to a different page. When I come back to the same page, the items that I selected are not selected. All the check boxes are cleared. Is there a way to maintain the checked items between pages?

And while in page n, is it possible to get all the check boxes that are checked from pages 1 to n.

Thank you.

Sep 15th, 2005, 04:52 PM
You'd have to save them and programmatically check them.
Look into ViewState for this.

Sep 16th, 2005, 01:30 AM
Make sure your checkboxes are set to AutoPostback=true, capture the Check_Clicked event, store to viewstate, cachce, or session....