Dropdown list

B

bbawa1

I have a dropdown list and I am pulling the data from database and
then binding it with dropdown list e.g ddlApplication.DataBind();

Now when I click any item it sends that item in the gridview but what
I want that whichever item sends to gridview it should now disappar in
the dropdownlist

How can I do that.
 
G

Guest

I have a dropdown list and I am pulling the data from database and
then binding it with dropdown list e.g ddlApplication.DataBind();

Now when I click any item it sends that item in the gridview but what
I want that whichever item sends to gridview it should now disappar in
the dropdownlist

For removing the items, the Remove() function can be used.

DropDownList1.Items.Remove(DropDownList1.SelectedItem)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top