user406151
user406151

Reputation: 425

Combo box refresh after click button event

I have a combobox binded to a stored procedure which pulls in Years

the click event button deletes whichever year is selected and that works as I can confirm the record is actually deleted on the back end in the database. But after the delete the combo box doesnt refresh and still shows the old record. Any ideas?

Upvotes: 0

Views: 636

Answers (1)

Amiram Korach
Amiram Korach

Reputation: 13286

You need to query the data again and call combo.DataBind() or delete the item yourself.

Upvotes: 1

Related Questions