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

Rad1
Rad1 used Ask the Experts™
on
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!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
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
Commented:
Have a look at this article also for the full Gridview:

http://www.codeproject.com/Articles/36528/GridView-all-in-one

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