Dropdownlist within a GridView
This gridview is an orders-list display for the selected customer. Each row displays the order
detail and a dropdownlist to select the product on the order. I did the dropdownlist using the business logic layer
where I have a clsOrder that exposes a property named Products; the latter returns a generic list of type clsProdListItem;
each containing a value and description for the product. By changing the product selection
in the dropdownlist, a detailsview displaying the product information becomes visible within the
grid's table.
To get the record count of the returned dataset I handle the Selected event of the ObjectDataSource
select a Customer:
Total Record count in the dropdownlist above= 91
Total Record count returned by the query on the GridView= 6
Orders list for the selected customer
| Edit | 10643 |
25/08/1997
| 29.4600 | Alfreds Futterkiste |
|
| Edit | 10692 |
03/10/1997
| 61.0200 | Alfred's Futterkiste |
|
| Edit | 10702 |
13/10/1997
| 23.9400 | Alfred's Futterkiste |
|
| Edit | 10835 |
15/01/1998
| 69.5300 | Alfred's Futterkiste |
|
| Edit | 10952 |
16/03/1998
| 40.4200 | Alfred's Futterkiste |
|
| Edit | 11011 |
09/04/1998
| 1.2100 | Alfred's Futterkiste |
|