Persistence

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
 
S

S. Justin Gengo

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top