Persistence

  • Thread starter Thread starter Yama
  • Start date Start date
Y

Yama

Hi,

I have a datagrid with a checkbox column. The datagrid is using paging and
sorting. When I click on a checkbox then go to page 2 (or any other) then
come back to page 1 the checkbox is cleared!

Any suggestions?

Thanks,

Yama
 
Yama,

The datagrid is being re-populated each time you change pages and that
clears the checkbox on the previous page. (The datagrid is being persisted
using viewstate which only stores the objects currently displayed. You'll
need to store previous page's checkbox values in a database, in viewstate,
or session variables and then restore them.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top