Click here to Skip to main content
11,496,146 members (452 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: C# Javascript XML

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 28-Dec-10 20:19pm
yogeshkollu at 1-Mar-11 12:14pm
hi can you share your solution if you got one
venkatrao palepu at 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
Henry Minute at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600

Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 28 Feb 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100