c# combobox problems in setting the list of items -


I have 2 comboboxes CB 1 and CB2 I need to set when CB1 Selected text = "AA", in CB2, the list of items will be "1,2,3" when CB1 Selected text = "BB", CB2 lists the items in "5, 6.7"; How can I do this?

You need to wipe the existing existing exchange event. 1 for -

  CB1 Selected index changed + = new event handler (CB1 integrated indices change);   

handle program & amp; Populate cb2 based on selected text in Cb1 -

  go to void cb1_SelectedIndexChanged (Object Sender, EventArgs E) {// Select the selected text of the CB1 string >> Select text = cb1.SelectedText; // Populate CB2 based on selected text   

Hope this will be helpful ...

Comments