Hi,
I have one problem. I m using checkboxes in GridView.
and GridView has pageing allow also.
When i select checkbox from one page and move to another page of gridview. then the selected checkboxs becomes uncheck.
becsouse of the postback. i mm using ajax also.
bt did't get the solution.
can anybody help me out
it's urgent...
Can't you store the IDs in session and check everytime you bing the gridview.
Hi Sa.sharma,
Based on my understanding, there is a GridView which allows pagination with Ajax in a page. The GridView has a checkbox column. When you select the checkbox in the current paging of GridView, then move to next pag of GridView and then return formerly pag, the checkbox is unselected. You want checkbox to be selected in spite of paging. If I have misunderstood you, please feel free to let me know.
Because the web form is non-state. So you need to store the data when you move to next page, and resume the data when you return. I agree with what Apurva said. You can use session or viewstate to store the value you select. You need to check the value every time if you do that.
You can also add a column to the table, which is bound to GridView, to store the value. This need to check value every time too.
I hope this helps.
0 comments:
Post a Comment