In this tutorial, I’ll show you how to use Drop Down List inside Grid View, and how to perform edit, update, delete operation on each field along with Drop Down List.
INITIAL CHAMBER Step 1: Open Visual Studio 2010 and create an empty website. Step 2: In Solution Explorer you will get your empty website. By following these steps: For Web Form gridview_demo (Your Empty Website) - Right Click, Add New Item, then Web Form. For SQL Server Database gridview_demo (Your Empty Website) - Right Click, Add New Item, then SQL Server Database. DATABASE CHAMBER Step 3: Go to your Database [Database.mdf], we will create a table - tbl_Data. Design your table like the following: Table - tbl_data [Don’t forget to make ID - Identity Specification - Yes] Figure 1: Database DESIGN CHAMBER Step 5: Now Open your gridview_file, where we create our design for binding and performing edit, delete, and update operation with dropdownlist.
Gridview_OUTPUT CHAMBER Figure 4: Output Update Figure 5: Update Figure 6: Update Show table data Figure 7: Show data Hope you liked it.
We can create different types of columns in C1Grid View.
In these different types of columns, C1Template Field is very popular as it can be customized to meet various user requirements.
The extractvalue does not get called when my dropdownlist is created or the value is selected. In my On_Load() protected Extract Values is for use when Updating. Starting at 4.0, it works for binding in code-behind as well. Please remember to click “Mark as Answer” on the post that helps you.