Dropdown Crontol in ASP.NET Gridview that acts as Display Textbox and and Dropdown control

Rad1 used Ask the Experts™
I need a Drop-down control that replace the textbox that is displayed when clicking to Edit row in the Gridview control.
The dropdown needs to display the names from a database and when a user click on a name, it needs to be inserted in the database.
Also, when the page loads, the Drop-down control needs to display the assigned name from the database column.

Any idea how I can do it?

Thank you!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Put a ddl in an edit template.  Populate the ddl in onedit handler.  Onupdate event of grid check value and write to db.  Start googling slowly to get examples...
Kaushal AroraTechnical Analyst
Have a look at this article also for the full Gridview:


Hope this helps you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial