In a prior application, I had 2 combo boxes linked. So if they chose something from CB1 it selected the match in CB2. I did this by selected index because both lists were in the same order.
I now want to do something similar but I want the order to be different now. I want each to be alphabatized. So using selected index obviously won't work. For the life of me I can't get this to work. From what I understand if I am making CB2 match CB1 (cause they changed CB1), I need to set CB2.SelectedValue and I tried that. But I'm just confused. SelecteText really doesn't have a value anymore. so how can I accomplish this? Thank you in advance before I turn grey! LOL
private void cbSupervisor_SelectionChangeCommitted(object sender, EventArgs e)
{ cbSupervisorName.SelectedValue = cbSupervisor.SelectedText; }
private void cbSupervisorName_SelectionChangeCommitted(object sender, EventArgs e)
{ cbSupervisor.SelectedValue = cbSupervisorName.SelectedText; }