Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update dropdownlist in one listview after changes in another

Status
Not open for further replies.

stinkybee

Programmer
May 15, 2001
218
GB
I expect this is simple but can't seem to find a good answer.

How do I update a dropdownlist that is in both the insert and edit templates of one listview when I insert, edit or delete items in another listview.

To clarify. I have:

ListView1
ListView2

DropDownList1 in the EditItemTemplate of ListView2
DropDownList1 in the InsertItemTemaplate of ListView2

SqlDataSource1 that populates ListView1 and DropDownList1

After making a change in ListView1 I need to update the dropdownlist called DropDownList1 that exists in both the edititemtemplate and the insertitemtemplate

I am working in VB by the way

Thanks

Web Development Manager
 
I don't understand why you would need to update the ddls in listview2 (insert, and edit) when listview1 changes.
Those ddls are in templates and won't be visible until those templates are invoked. So, you should just update the ddl when the template is made visible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top