How to clean all itens in a Combobox list???

  • Thread starter Thread starter Thomaz
  • Start date Start date
T

Thomaz

Hi i need some help to solve a problem with the DataSource
in a COMBOBOX.
The question is "How can i clear all the itens in a
Combobox if i use the DataSource to browse data in a
database????".
I use the code below to fill a combobox:

this.cboSubfamilia.DataSource = thisDataSet.Tables
["subfamilia"];
this.cboSubfamilia.DisplayMember = "subfamilia";

After to make the described one above, as I can clean all
itens of same combobox and does not appear nothing in its
listing???
 
Thomaz,

You should be able to remove the data source and it should remove the
items from the combobox.

Hope this helps.
 
Back
Top