abburi chowdary

abburi chowdary

  • NA
  • 60
  • 14.9k

How can we clear data in combobx2 on selecting next item in

Apr 26 2018 1:52 AM
I used two combo boxes cmbhospitals and cmbusers in cmbusers when i click hospital A in 1st combbox it displays users of that hospital but again when i click on hospital B in cmbusers(Combobox2) it was displaying both users og hospital A and B I used if which clears the text but not the previous hosptal data please suggest.
 
I used below three to clear but getting the same old values when selecting.
 
//cmbhusers.SelectedItem=null;
cmbhusers.Items.Clear();
cmbhusers.ResetText();
cmbhusers.SelectedIndex=-1;

Answers (2)