Click here to Skip to main content
15,888,066 members
Articles / Web Development / ASP.NET

Creating an ASP.NET GridView Custom Field of type DropDownList

Rate me:
Please Sign up or sign in to vote.
4.19/5 (18 votes)
30 Nov 2008CPOL1 min read 102.2K   2.2K   28  
Sometimes you need to use a DropDownList in a GridView in a way to see the text of the field and save the value to the database. Here we extended the “BoundField” class, and add features to create a column type of “DropDownList”.

Views

Daily Counts

Downloads

Weekly Counts

License

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


Written By
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions