Adding a dropdown control to a ListView
A dropdown list if pretty simple - it works practically the same as it wound on a normal form.
1 | <InsertItemTemplate> |
One problem, is it doesn’t bind very well to a list view control. Consequently if you have one in the InsertItemTemplate you need to add a routine to move it’s contents to a database on save. This is done with the item inserting event.
1 | Protected Sub lv_VendorAccount_ImportSpecs_ItemInserting( _ |
Another problem, is you cannot simply doubleclick the control to bring you to code. I have a template that I paste into the code whenwever I add a dropdown with an autopostback set to true
1 | Protected Sub ddlx_SelectedIndexChanged( _ |