hi!
i am using datagrid to display data, in my datagrid i take checkboxes, and i take paging also and my problem is when i check checkboxes and i go to next page of datagrid this selected checkbox of first page checkboxes are unchecked.
my aim is user select the checkboxes and he goes to next page still previous checkboxes also checked until user unchecks the checkboxes.
using sessions how to store selected checkboxes of datagrid in sessions. please give a solutions and give a sample code of todo this.
Thanks.
Loading
CrishPosted May 17, 2010, 12:21 PM
In datagrid's itemdatabound event write one javascript function. In this function you need to pass checked box value like if user checked checkbox value then store this value in hidden textbox with comma separated.
you will also get this value when you are using paging. so once click on previous page then take value from this hidden box and click those checkbox which have value in textbox.
you can also store this checked checkbox value in when paging event is fire.
thanks