ViewState vrs Datagrid Combo Boxes

T

Toff McGowen

Hello

How do i maintain viewstate of dropdownlists for client side postback when
they are used as selection controls in the column of a datagrid?

I have a datagrid that has a dropdownlist as a selection control in one of
the columns. I use OnItemCreated to fill each combo with the available
options.

Above the grid is a textbox in which a user has to enter a date. I can only
check the validity of this date (not format;range) on the server.

My problem is that when the date is invalid the form must be posted back to
the user for correction but in doing so i lose the viewstate of any
dropdownlist box that was changed. This in turn means that the user has to
reselect their relevant options making the form seem clunky and
unprofessional.

Thanks

TM
 

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

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top