Dropdown list

  • Thread starter Thread starter bbawa1
  • Start date Start date
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.
 
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)
 
Back
Top