Click here to Skip to main content
14,732,665 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I am using drop down lists in Grid view.

I have predefined data in Drop Down List. I am using pagination.

I am in first page. I have some data in Drop Down List. I changed data in Drop Down List and going to second page. If I come back to first page from 2nd page, it is not retaining changed values. It is getting default values.

I want to retain the values after coming back to first page from second page.

It would be great if u can help me out in this regard.

Thank you so much in advance.
Posted
Comments
yogeshkollu 1-Mar-11 12:14pm
   
hi can you share your solution if you got one

   
Comments
venkatrao palepu 29-Dec-10 5:22am
   
Hi this Example is working fine
But In this Example there is no pagination, I want pagination. If u know about this thing please help me......
I am looking for solution too, please let me know if you found the solution for this.
   
You can only achieve this customized solution by storing your DropDown selected state in ViewState by storing in Key/Value pair.

HERE[^] is example for you which same way work to persist CheckBox state, Modify it accordingly.

Please vote and Accept Answer if it Helped.
   
I looked into the link, that is for checkboxes, i want for dropdown list can you suggest
   
Comments
Henry Minute 28-Feb-11 15:26pm
   
Do NOT respond by adding an answer. Use the 'Add Comment' widget at the bottom right of the answer you want to respond to. That way the person gets an email, just like you are getting here. Only use the Add Answer/Solution if you have a solution to the OPs original question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900